You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2017/04/09 00:01:15 UTC

[Issue 127218] Renaming paragraph style in Writer destroys the document

https://bz.apache.org/ooo/show_bug.cgi?id=127218

Rasmus Koorits <rk...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rkoorits@gmail.com

--- Comment #6 from Rasmus Koorits <rk...@gmail.com> ---
I was able to reproduce this issue from a blank file, without using import.
Under specific conditions, Writer seems to forget the Style of a section of
text.
The original sample file used a lot of graphs, frames, and styling, making the
impact more severe.

It seems the Style is reset to 'Default' when the following critical conditions
are met:
 1. A Custom Style needs to be used (since others cannot be renamed)
 2. Style information has to be overridden in the actual text (for example
using a style with regular font weight, but setting the text to bold everywhere
with ctrl+b)
 3. The used Style has to be renamed
 4. The file is saved, closed, and reopened.

Steps to reproduce:
-Creating the file:
 1. Open a new blank document

-Create a new style:
 2. Press F11 to bring up 'Styles and Formatting'
 3. Be on the 'Paragraph Styles' tab (only tested with these so far)
 4. Find and select the 'Default' style (only tested with this one so far)
 5. Click 'New Style From Selection'
 6. Name the style something meaningful. I named it 'corruptionTest'.
 7. Click OK

-Back to the main document body:
 8. Write some text into the blank document.
 9. Apply the newly created style to it (should be automatically applied since
this style is selected)
 10. Select ALL the text and set text to bold (ctrl+b), thus overriding the
font weight of the style that was just created. (Interestingly, the issue does
NOT occur when only part of the text is bolded)

-Back to 'Styles and Formatting' window:
11. Right-click on the newly created style, click Modify
12. Select the 'Organizer' tab, change name to something else. I changed it to
'corruptionTest2'.
13. Click 'Ok'
14. File > Save (Or Ctrl+S)
15. Close and reopen the document

Expected:
Text should be bold and using the newly created Style

Observed:
Text is no longer bold and using the Style 'default'

System: Windows 10 (64-bit)
Version: Apache Open Office 4.1.3, and 4.2.0 (nightly en-US_1785175)

-- 
You are receiving this mail because:
You are the assignee for the issue.