[Libreoffice-bugs] [Bug 135069] New: FILEOPEN DOCX TOC style indent settings not imported correctly

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jul 23 08:07:54 UTC 2020


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

            Bug ID: 135069
           Summary: FILEOPEN DOCX TOC style indent settings not imported
                    correctly
           Product: LibreOffice
           Version: 6.4.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: bibisected, bisected, filter:docx, regression
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: libreoffice at nisz.hu
                CC: jluth at mail.com, nemeth at numbertext.org
            Blocks: 107830

Created attachment 163437
  --> https://bugs.documentfoundation.org/attachment.cgi?id=163437&action=edit
Example file from Word with TOC paragraph styles

Attached user made document has a TOC and there are custom styles (TJ 1-9)
defined for it. 
On the first level TOC entries is “TJ 1” style applied, on the second level
it’s “TJ 2”. These have 0 before/after/hanging indent set.
When opened in Writer the before/after/first line indents get crazy values,
making the first level TOC text unreadable.

More observations: “TJ 1” style is based on “Tartalom fejezetcím” style. Which
is based on “Címsor 2” style, that has 19.32 cm hanging indent – this shows up
in Writer; also 1 cm left indent which does not.
“Címsor 2” is based on “Címsor 1” which has 0 left and right indent, 0.75 cm
hanging. “Címsor 1” is based on “Normal” which has 0 left and right indent and
no hanging indent. 
I don’t see where the 15.5 cm before and -4,82 after indents are inherited in
Writer, but the 19,32 first line indent is from the “Címsor 2” style. See also
bug #132752

Also the “TJ 1-9” styles do not show up in the Styles sidebar at all.

Steps to reproduce:
    1. Open attached document

Actual results:
First level TOC entries unreadable due to spacing settings.

Expected results:
Readable TOC.

LibreOffice details:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: b1c83b68bfbf3477fa6a8f4c79c53f6f9ab31f8e
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL

Also in:
Verzió: 6.4.0.3 (x86)
Build az.: b0a288ab3d2d4774cb44b62f04d5d28733ac6df8
CPU szálak: 4; OS: Windows 6.3 Build 9600; Felületmegjelenítés: GL; VCL: win; 
Területi beállítások: en-US (hu_HU); Felület nyelve: hu-HU
Calc: CL

Does not happen yet (styles seem not to be applied to TOC) in:
Verzió: 6.3.0.4 (x86)
Build az.: 057fc023c990d676a43019934386b85b21a9ee99
CPU szálak: 4; OS: Windows 6.3; Felületmegjelenítés: GL; VCL: win; 
Területi beállítások: hu-HU (hu_HU); Felület nyelve: hu-HU
Calc: CL

Bibisected using bibisect-win64-6.4 to:
URL:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=b47a8f091ad8f9048a6b7962e9cde5d04ea0d665
author  Justin Luth <justin.luth at collabora.com> 2019-08-01 15:50:00 +0300
committer       Justin Luth <justin_luth at sil.org>       2019-08-01 19:28:54
+0200
tdf#126544 writerfilter: check parent style exists before assigning

Adding CC to: Justin Luth
It might be possible that this has just uncovered something pre-existing.


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=107830
[Bug 107830] [META] DOCX (OOXML) paragraph-related issues
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200723/1bab7698/attachment.htm>


More information about the Libreoffice-bugs mailing list