[Libreoffice-bugs] [Bug 144392] New: Current point after "close path" command Z is the initial point of the closed path

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Sep 8 23:42:43 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=144392

            Bug ID: 144392
           Summary: Current point after "close path" command Z is the
                    initial point of the closed path
           Product: LibreOffice
           Version: 7.3.0.0 alpha0+ Master
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Draw
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: rb.henschel at t-online.de

Created attachment 174910
  --> https://bugs.documentfoundation.org/attachment.cgi?id=174910&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210908/0a053b5b/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list