Apache OpenOffice (AOO) Bugzilla – Issue 34870
Impress crash when I delete a masterpage and close the doc.
Last modified: 2004-11-04 08:33:09 UTC
- start an Impress - change to the masterpage - add a masterpage with the masterpage toolbar - delete a masterpage with the masterpage toolbar - cloase the document (or the office) - you get a crash.
This is an undo related problem.
When a page is deleted via the UI then the page is removed from the document and placed in an undo operation. When the document is closed the undo operation together with the page are destroyed. But, when calling SdMasterPagesAccess::remove() to remove a master page from a document it is not only removed but is deleted as well. The second attempt of the undo operation to delete the master page leads to the crash.
Fixed by removing master pages from the document by using core methods directly. This removes the double deletion and the crash.
Step 1/3 of sending issue back to QA.
Step 2/3 of sending issue back to QA.
Step 3/3 of sending issue back to QA.
Verified in CWS.
Tested in master m60. Closed.