<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:jluth@mail.com" title="Justin L <jluth@mail.com>"> <span class="fn">Justin L</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN Chapter numbering in a DOTX import is wrong in version 7.0, was OK in 6.4"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=136194">bug 136194</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>ASSIGNED
</td>
<td>NEW
</td>
</tr>
<tr>
<td style="text-align:right;">Assignee</td>
<td>jluth@mail.com
</td>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN Chapter numbering in a DOTX import is wrong in version 7.0, was OK in 6.4"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=136194#c14">Comment # 14</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN Chapter numbering in a DOTX import is wrong in version 7.0, was OK in 6.4"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=136194">bug 136194</a>
from <span class="vcard"><a class="email" href="mailto:jluth@mail.com" title="Justin L <jluth@mail.com>"> <span class="fn">Justin L</span></a>
</span></b>
<pre>136194_minimal.docx shows we import outline/chapter numbering completely
incorrectly in writerfilter. We have band-aids(plasters) everywhere, partially
covering a gaping wound.
When dealing with Heading 1 style, we get:
warn:legacy.osl:4046753:4046753:sw/source/core/txtnode/ndtxt.cxx:3887:
<HandleModifyAtTextNode()> - text node with outline style, but its paragraph
style is not assigned to outline style.
warn:legacy.osl:4046753:4046753:sw/source/core/doc/fmtcol.cxx:601:
<SwTextFormatColl::GetAssignedOutlineStyleLevel()> - misuse of method
But how to fix? Somehow Chapter Numbering should NEVER be set UNLESS we are
confident that LibreOffice saved the docx.
I think this would be: the numId == 1, and it is never used in direct
formatting, and only used in styles where outlineLevel == listLevel (although
examples show that listLevel seems to be optional :-()
It should be irrelevant what the name of the paragraph style is.
(.doc format already does outlineLevel == listLevel)
Crude bandaid patch found at <a href="http://gerrit.libreoffice.org/c/core/+/114681">http://gerrit.libreoffice.org/c/core/+/114681</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>