Apache OpenOffice (AOO) Bugzilla – Issue 91462
The crash about Animated image
Last modified: 2008-08-05 20:42:30 UTC
1. Start a presentation. 2. Draw a rectangle or other shapes. 3. Select the shape and then "Insert"->"Animated Image..." 4. Select "Bitmap object",push "Apply object" image button and then push "backwards" button,finally,adjust "duration" time. The presentation crashed.
Reproducible. Reassigned.
I have debug it and got the reason.After pushed "backwards" button I broke at IMPL_LINK( AnimationWindow, ClickPlayHdl, void *, p ),the method UpdateControl outside while loop is given -2 as its real parameter but the parameter is defined as ULONG.Therefore,I assumed it led to the problem indirectly.
The ID of the error report is rgqy4uc.
Thanks liujianli, your analysis was quite right. The code in ClickPlayHdl did not handle the backward iteration correctly. Fixed by making sure that the index does not become negative. Modified file: sd/source/ui/dlg/animobj.cxx rev. 1.28.74.1
Please verify.
Verified in CWS.
Verified with OOo-Dev m28 on OpenSuSE 10.3, KDE 3.5.9, ATI Radeon mobility 9700. It works without a crash.
Verified on WinXP with OOo3 m28. It works. Closing.