https://bugs.documentfoundation.org/show_bug.cgi?id=92352

            Bug ID: 92352
           Summary: Paragraph style is lost when dealing with direct
                    formatting copied from DOCX
           Product: LibreOffice
           Version: 3.5.4 release
          Hardware: Other
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 116843
  --> https://bugs.documentfoundation.org/attachment.cgi?id=116843&action=edit
DOCX for bug demonstration

Under certain conditions (probably depending on import from DOCX and on direct
formatting), paragraph style is lost after reopening a file. I face this bug
quite often when processing files sent by MS Office users.

Steps to reproduce:
1. Open the attached file "sample.docx". (It contains two lines of "Normal
(web)" style, however heading is formatted directly.)
2. Copy all content of the file (Ctrl+A, Ctrl+C).
3. Create a new file and paste the content to it (Ctrl+N, Ctrl+V).
4. Apply styles (of the default LO template) to the content: "Default Style" to
the second line, "Heading" (not "Heading 1" etc.) to the first line. The first
line is still directly formatted and does not look like "Heading".
5. Remove all direct formatting (Ctrl+A, Ctrl+M). The first line looks now as
expected.
6. Save the file as ODT file.
7. Close the file and reopen it.

Observed: The first line has "Default Style" set.
Expected: The first line should have "Heading" style.

Experienced in all versions I've tested, clean user profile applied:
Ubuntu 14.10: 4.3.7.2, 4.4.4.3, 5.0.0.1
Windows 7: 4.4.3.2 to 3.5.4.2 (the earliest I have, bug probably inherited from
OOo)

Interesting change in 5.0: in step 4, applying the style on the first line
removes direct formatting (contrary to earlier versions), so there is no need
to remove them manually. However, after doing that, the bug still occurs.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to