Apache OpenOffice (AOO) Bugzilla – Issue 48949
method <SwDoc::CopyPageDesc(..)> creates invalid undo action
Last modified: 2013-08-07 14:41:36 UTC
The method <SwDoc::CopyPageDesc(..)> creates the invalid undo action 'Insert: frame|draw object', if the page style contains a page header/footer, which contains a floating screen object (frame, graphic, drawing object or OLE object). This causes a crash or an inconsistent document, if such an invalid undo action is performed followed by other correct undo actions. E.g.: (1) open document <oat-2004.odt> attached to issue 46941 and change the margin of the page -> Undo stack contains undo action 'Insert draw object'. (2) copy a page style of above given type from a document A to a document B, after you had inserted and deleted some paragraphs in document B -> Undo stack contains undo action 'Insert draw object' --> trying to undo all actions causes the Writer to crash
proposed solution: ad (1): suppress creation of undo action in method <SwDocStyleSheet::SetItemSet(..)> in the case of changing a page style. ad (2): suppress creation of undo actions for method <SwDocShell::Insert(..)> and clear the undo action stack afterwards. Note: solutions depend on fix for issue 46909
fixed in cws swqbugfixes30 - changed files: /sw/source/ui/app/docstyle.cxx, 1.18.114.1 /sw/source/ui/app/docsh2.cxx, 1.75.54.1
OD->MRU: Checked in internal installation set of cws swqbugfixes30 - please verify. re-open issue and reassign to mru@openoffice.org
reassign to mru@openoffice.org
reset resolution to FIXED
Verified fix in CWS swqbugfixes30.
Reopen, because cws swqbugfixes30 will be canceled. Fix will be integrated into cws swqbf34
fixed in cws swqbf34 - changed files: /sw/source/ui/app/docstyle.cxx, 1.18.186.1 /sw/source/ui/app/docsh2.cxx, 1.75.132.1
fix reviewed by FME.
OD->MRU: Checked in internal installation set of cws swqbf34 - please verify.
Corrected "Target Milestone" to OO 2.0.
Verified fix in CWS swqbf34.
Checked fix in 680m119.