https://bugs.documentfoundation.org/show_bug.cgi?id=101051
Bug ID: 101051
Summary: Writer fails to save style hierarchy in docx XML
format
Product: LibreOffice
Version: 5.1.4.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
I created new styles in a Word document initially making some inherit from
Heading, then later changing them to inherit from another custom style. This
appeared to be fine until I next opened the document when they had changed to
the top of the style hierarchy meaning the font also changed to a fallback
(Calibri) not set in any visible style.
I tried various things to try to make this stick and checked that the document
appeared the same in Word. Then I examined styles.xml in the .docx file and
noticed that the problem styles were listed *before* the style they inherited
from. Moving the base style earlier in styles.xml fixed the problem.
I don’t know how this is supposed to work - perhaps this is buggy behaviour in
Word/Writer to make assumptions about the hierarchy before loading all styles?
Effectively though, it may mean Writer needs to be aware of the style hierarchy
when writing styles.xml.
Styles when document saved:
Default Style
-p
--first
---chapter
When document re-opened:
Default Style
-chapter
-p
--first
LibreOffice
Version: 5.1.4.2
Build ID: 1:5.1.4-0ubuntu1~trusty1
CPU Threads: 8; OS Version: Linux 3.13; UI Render: default;
Locale: en-AU (ga_IE.UTF-8)
Ubuntu 14.04.4 64-bit
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs