<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 - Current point after "close path" command Z is the initial point of the closed path"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=144392">144392</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Current point after "close path" command Z is the initial point of the closed path
</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>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Draw
</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></table>
<p>
<div>
<pre>Created <span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=174910" name="attach_174910" title="Command sequences Z L L and Z M L">attachment 174910</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=174910&action=edit" title="Command sequences Z L L and Z M L">[details]</a></span>
Command sequences Z L L and Z M L
Open attached document. It has two custom shapes. The used enhanced-path is
cited on the right side.
The "close path" command Z makes the "current point" not invalid, but sets it
to the initial point of the closed path. And following commands uses this as
"current point" as long as they do not set themselves a "current point".
In the examples the closed path is the triangle. Its initial point has the
coordinates (0|0). Therefore in shape A there should be a line from point (0|0)
to point (80|60) which is the parameter of the first L (lineto) command.
Shape B does not have such line, because the command M (moveto) sets a "current
point".
I think, there should be no concerns to fix it. This bug-report is not about
the path object and its svg:d attribute, where users have a UI to manipulate
points. But it is about the enhanced-path attribute of custom-shapes. The
reported situation does not exists in import or export with predefined shapes.
It happens only, if someone creates own custom-shapes by editing the markup in
file or using macros.
Current ODF 1.3 is not explicit about current point after Z. But SVG, from
which the path commands were inspired, has this rule and ODF 1.4 will have it
explicitly too.</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>