Bug 122964 - Multiple moveTo has to be treated as lineTo in draw:enhanced-path
Summary: Multiple moveTo has to be treated as lineTo in draw:enhanced-path
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Regina Henschel
URL: http://docs.oasis-open.org/office/v1....
Whiteboard:
Keywords:
Depends on:
Blocks: ODF-import
  Show dependency treegraph
 
Reported: 2019-01-25 12:03 UTC by Regina Henschel
Modified: 2019-01-29 20:33 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
with shape path "M 0 0 5 10 10 0 N" (9.44 KB, application/vnd.oasis.opendocument.graphics)
2019-01-25 12:03 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2019-01-25 12:03:08 UTC
Created attachment 148650 [details]
with shape path "M 0 0 5 10 10 0 N"

According to ODF 1.2 section 19.145 the command M has the special rule, " If a moveto is followed by multiple pairs of coordinates, they are treated as lineto."
Therefore a path like e.g. "M 0 0 5 10 10 0 N" should be treated as "M 0 0 L 5 10 10 0 N".

The attached file should show a line from top-left to bottom-middle, then to top-right. But the file has only an empty shape. You can use Calligra Karbon to see, how the shape should be rendered.
Comment 1 Regina Henschel 2019-01-25 12:08:14 UTC
I will solve it so, that on opening such shape, the command L will be inserted. When saving, the command L will be present, so that older versions of LibreOffice can then render the shape correctly too.
Comment 2 Regina Henschel 2019-01-29 20:33:04 UTC
Fixed with https://gerrit.libreoffice.org/#/c/66888/, commit id=76c7a6c39d769cb9bdb9b951d9f95507c0139372