Apache OpenOffice (AOO) Bugzilla – Issue 57085
writer crash during the apply current styles process when opening a document based on a changed template
Last modified: 2013-08-07 14:42:16 UTC
When a template has changed, and a document based on this template is opened, Writer tries to apply the current styles to the document. That is expected behaviour. But during this process, writer often crashes. One of the situations when this always happens is when: 1) the template contains a page style with a header, and 2) one of the paragraph styles is changed to include the "Insert Page Break" option with the "Page Style" suboption. When opening a document using this paragraph style, writer always crashes during the "apply current styles" process. Many combinations of headers (in a page style) and the "Insert Break" option with the "With Page Style" suboption (in a paragraph style) seem to cause this problem. Below is a scenarios to recreate this problem: - Open a new text document. - Insert a page header (Insert – Header). This changes the "Default" page style. - Create a template from this document (File – Templates – Save) and name it “MyTemplateâ€. - Close the file. - Based on this template, create a new text document (File – New – "Templates and Documents", select "MyTemplate", click "Open"). - Enter some text and put the text in the "Heading 1" style (don't forget this step). - Save and close the file. - Edit the template (File – Templates – Organize, select "MyTemplate", click Commands – Edit). - Modify the "Heading 1" paragraph style: in the "Text Flow" tab, activate the "Insert" option (this automatically inserts a page break with each Heading 1) and activate the "With Page Style" option (this automatically switches to the "Default" page style with each Heading 1). - Save and close the template. - Open your text document. As expected, you will get the following prompt: "The styles in this document do not match your current styles. Should your current styles be applied to this document?". - Click "Yes" and Writer crashes. Can anyone confirm they are seeing the same problem?
MRU->OS: follow these steps to get the crash easily: - create new document, insert a header and save as Template - create document based on that template and add a "Heading 1" paragraph, save and close document - open template, change "Heading 1" text flow with page break on "Default" page style, save & close template - open document, click "yes" on style update request -> crash. I have sent a report, ID is rc83h8.
Reproducible crashes should have Prio 2
Fixed in cws swqbf41 in sw/source/core/layout/frmtool.cxx
Reassigned for verification
.
Verified fix in CWS swqbf41.
Checked fix in build 680m139.