Issue 57085 - writer crash during the apply current styles process when opening a document based on a changed template
Summary: writer crash during the apply current styles process when opening a document ...
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 2.0
Hardware: PC Windows XP
: P2 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-31 20:46 UTC by twillems
Modified: 2013-08-07 14:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description twillems 2005-10-31 20:46:26 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?
Comment 1 michael.ruess 2005-11-01 07:43:03 UTC
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.
Comment 2 Oliver Specht 2005-11-01 08:38:54 UTC
Reproducible crashes should have Prio 2
Comment 3 Oliver Specht 2005-11-02 11:40:29 UTC
Fixed in cws swqbf41 in sw/source/core/layout/frmtool.cxx
Comment 4 Oliver Specht 2005-11-07 14:24:25 UTC
Reassigned for verification
Comment 5 Oliver Specht 2005-11-07 14:24:40 UTC
.
Comment 6 Oliver Specht 2005-11-07 14:24:52 UTC
.
Comment 7 michael.ruess 2005-11-08 13:53:52 UTC
Verified fix in CWS swqbf41.
Comment 8 michael.ruess 2005-11-11 12:27:37 UTC
Checked fix in build 680m139.