<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - FILEOPEN DOCX TOC style indent settings not imported correctly"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=135069">135069</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>FILEOPEN DOCX TOC style indent settings not imported correctly
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.4.0.3 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Keywords</th>
<td>bibisected, bisected, filter:docx, regression
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Writer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>libreoffice@nisz.hu
</td>
</tr>
<tr>
<th>CC</th>
<td>jluth@mail.com, nemeth@numbertext.org
</td>
</tr>
<tr>
<th>Blocks</th>
<td>107830
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=163437" name="attach_163437" title="Example file from Word with TOC paragraph styles">attachment 163437</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=163437&action=edit" title="Example file from Word with TOC paragraph styles">[details]</a></span>
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
<a class="bz_bug_link
bz_status_NEW "
title="NEW - DOCX import: invalid paragraph indentation"
href="show_bug.cgi?id=132752">bug #132752</a>
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:
<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=b47a8f091ad8f9048a6b7962e9cde5d04ea0d665">https://cgit.freedesktop.org/libreoffice/core/commit/?id=b47a8f091ad8f9048a6b7962e9cde5d04ea0d665</a>
author Justin Luth <<a href="mailto:justin.luth@collabora.com">justin.luth@collabora.com</a>> 2019-08-01 15:50:00 +0300
committer Justin Luth <<a href="mailto:justin_luth@sil.org">justin_luth@sil.org</a>> 2019-08-01 19:28:54
+0200
<a class="bz_bug_link
bz_status_VERIFIED bz_closed"
title="VERIFIED FIXED - in DOCX files, some styles's "text direction" appears Right-to-Left or Left-to-Right depending on User Interface Language"
href="show_bug.cgi?id=126544">tdf#126544</a> writerfilter: check parent style exists before assigning
Adding CC to: Justin Luth
It might be possible that this has just uncovered something pre-existing.</pre>
</div>
</p>
<div id="referenced">
<hr style="border: 1px dashed #969696">
<b>Referenced Bugs:</b>
<ul>
<li>
[<a class="bz_bug_link
bz_status_NEW "
title="NEW - [META] DOCX (OOXML) paragraph-related issues"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=107830">Bug 107830</a>] [META] DOCX (OOXML) paragraph-related issues
</li>
</ul>
</div>
<br>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>