Apache OpenOffice (AOO) Bugzilla – Issue 92304
Insert header, change and delete page style, crashes when undoing
Last modified: 2013-02-19 22:20:39 UTC
1.Craete a new writer document; 2.Insert-Header-Default, insert a header; 3.Press F11 to pop up "Styles and Formatting" dialog, and change to "Page Styles"; 4.Right click, and click "New" to create a new style "Untitled1"; 5.Double click style "Untitled1" to apply it; 6.Select style "Untitled1" and right click on it, and then "Delete" and Press "Yes"; 7.Undo for 3 times; Writer crashes.
MRU->AMA: follw the steps - new document and insert a header, - create new page style, apply in and afterwards delete it - three times undo -> crash
Due to our workload and resources (development as well as QA) I've to retarget this issue to OOo3.2.
Björn, please take over
.
Bug is confirmed under Linux in version OOo 2.4.1.
After follow-up testing, it seems that skipping step 2 results in a crash as well.
reproducable on DEV300_m50 on unxlngi6.pro
retargeting 3.3
root cause is that SwUndoPageDescCreate keeps a naked pointer to the created SwPageDesc. As the SwPageDescs array becomes the owner of the SwPageDesc (being free to delete it), that is broken by design. As a fix SwPageDescs needs to use refcounting pointers (e.g. a ::std::vector< ::std::tr1::shared_ptr< SwPageDesc >) so that the ownership of the PageDesc can be shared with the undo object.
started work in cws swbookmarkfixes01 => STARTED retargeting to 3.4
pls. reassign or close issues. Thx.
so mark as resolved fixed.
Hello I checked it with AOO 3.4.1 and the bug was solved.