<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 - FILESAVE DOCX Export of "bracePair" produces invalid file, that Word cannot read"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=143028">143028</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>FILESAVE DOCX Export of "bracePair" produces invalid file, that Word cannot read
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>7.3.0.0 alpha0+ Master
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Keywords</th>
<td>implementationError
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>filters and storage
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rb.henschel@t-online.de
</td>
</tr>
<tr>
<th>CC</th>
<td>bakos.attilakaroly@nisz.hu
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=173123" name="attach_173123" title="file to reproduce the invalid docx document">attachment 173123</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=173123&action=edit" title="file to reproduce the invalid docx document">[details]</a></span>
file to reproduce the invalid docx document
Open attached file and export it to docx. Open the exported file in Word. Word
cannot read it. Reason is a duplicate <a:xfrm> element.
Some investigation:
DMLPresetShapeExporter::WriteShapeWithAVlist() calls WriteShapeTransformation
which writes the first <a:xfrm> element.
Then it calls GetAdjustmentPointXValue(0)
DMLPresetShapeExporter::GetAdjustmentPointXValue() calls
GetHandleValueOfModificationPoint(nPoint, u"RangeXMinimum")
That has a loop over all Name/Value pairs. In case of "bracePair" the loop will
find nothing, because they do not have "RangeXMinimum" but "RangeYMinimum".
Thus the return value is empty.
Back in GetHandleValueOfModificationPoint it makes a .get() on the empty return
value, which gives a runtime error. That is caught in WriteShapeWithAVlist and
makes it return 'false'.
With this 'false' the part after shapes.cxx#848 is entered. And that will write
in #873 the <a:xfrm> element again.</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>