<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:rb.henschel@t-online.de" title="Regina Henschel <rb.henschel@t-online.de>"> <span class="fn">Regina Henschel</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN, DOCX 2007 missing lines (but OK if DOCX resaved in MSO) - comment 6 and comment 7"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=112450">bug 112450</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;">CC</td>
<td>
</td>
<td>rb.henschel@t-online.de
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN, DOCX 2007 missing lines (but OK if DOCX resaved in MSO) - comment 6 and comment 7"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=112450#c12">Comment # 12</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - FILEOPEN, DOCX 2007 missing lines (but OK if DOCX resaved in MSO) - comment 6 and comment 7"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=112450">bug 112450</a>
from <span class="vcard"><a class="email" href="mailto:rb.henschel@t-online.de" title="Regina Henschel <rb.henschel@t-online.de>"> <span class="fn">Regina Henschel</span></a>
</span></b>
<pre>You get the same problem with current applications: Draw a polygon in Writer
and export as docx. Because of the fix for <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - FILESAVE: DOCX: PolyPolygon shape is not supported for DML (2010 schema) writing"
href="show_bug.cgi?id=75254">tdf#75254</a> this does not generate a
custom shape but only a VML shape. Open the file in Word and add a point to the
polygon. Save it in Word. Word converts it to a v:polyline element without
adding a custom shape. This does not happen in PowerPoint. I have not tested
Excel.
Word writes the values in the attribute "points" with units, e.g.
31.2pt,297.7pt. But the import does not consider units.
The error is in
<a href="https://opengrok.libreoffice.org/xref/core/oox/source/vml/vmlshapecontext.cxx?r=e12d4c7e#572">https://opengrok.libreoffice.org/xref/core/oox/source/vml/vmlshapecontext.cxx?r=e12d4c7e#572</a>
Because the token contains the unit, toInt32() returns 0.
If such edited shape is copies from Word to PowerPoint, then it is converted to
a custom shape. I don't know whether older PowerPoint versions create
v:polyline. It might be necessary do distinguish applications anyway, because
of the Twips vs 1/100mm problem. The attribute coordsize, which Word produces,
is in Twips, but has no unit. So for Writer the token has to be converted to a
number value in Twips to match the coordsize attribute.</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>