Apache OpenOffice (AOO) Bugzilla – Issue 119686
Undo operation lead to crash when editing xls file.
Last modified: 2012-11-08 05:36:55 UTC
Created attachment 77897 [details] attached xls file. Steps to Reproduce: 1. Open the attached xls file. 2. Edit cell B1 of the default displayed sheet(Sheet2). Such as, you can insert 1 into cell B1. 3. Undo several times. Actual Results: You can only undo once and the file keeps the same as it is before. Expected Results: Although you just edited the file once, there were 3 undo operations in the undo list(click the down arrow of the undo button in the toolbar). Undo 3 times, the file crashed. Build Date & Platform: Build revision is Rev. 1327774, first found on win xp.
This bug can repros on AOO3.4.O Rev. 1327774, and I change the status from Unconfirmed to confirmed.
(In reply to comment #0) > Created attachment 77897 [details] > attached xls file. > > Steps to Reproduce: > 1. Open the attached xls file. > 2. Edit cell B1 of the default displayed sheet(Sheet2). Such as, you can > insert 1 into cell B1. > 3. Undo several times. > This should be Expected Result: > Actual Results: > You can only undo once and the file keeps the same as it is before. > This should be Actual Result > Expected Results: > Although you just edited the file once, there were 3 undo operations in the > undo list(click the down arrow of the undo button in the toolbar). Undo 3 > times, the file crashed. > > Build Date & Platform: > Build revision is Rev. 1327774, first found on win xp.
Created attachment 78613 [details] Add patch I'm working on this defect, root cause: This defect is brought from issue 73249, an old defect, which added undo/redo mechanism on function SetName()/SetTitile()/SetDescription() of sdr object. When loading sdr object from MS Excel, sdr module is undo enable status, SetName() will be called here, so a needless undo action is added to undo-manager. Solution: set sdr module as undo disable status before call these functions.
taking over for reviewing the patch
Comment on attachment 78613 [details] Add patch Review done. Patch looks good and solves the problem. --> I will apply the patch on trunk.
"orw" committed SVN revision 1360123 into trunk: #119686# - method <XclImpDrawObjBase::PreProcessSdrObject(..)> - disable Undo...
patch applied on trunk.
Reopen the bug since the fix code cause crashes in some cases.
Created attachment 79212 [details] refix code patch Need add SdrModel pointer check code.
Comment on attachment 79212 [details] refix code patch This correction of the initial patch makes sense. +1 from my side to apply this correction.
assigning issue to zhang jianfang for further handling.
"zhangjf" committed SVN revision 1378570 into trunk: #i119686#, refix, add SdrModel pointer check to avoid crashes in some casesFo...
Set as resolved again.
set Target Milestone to AOO 3.5.0 for PM purpose.
Can't reproduce on trunk r1404513. Verify pass.