Date: prev next · Thread: first prev next last
2019 Archives by date, by thread · List index


Hi,

this is about https://gerrit.libreoffice.org/66888. I have put it to Gerrit for discussion.

The spec says, "If a moveto is followed by multiple pairs of coordinates, they are treated as lineto." LibreOffice does not honor this, Karbon does it. My patch transforms a path like "M 0 0 5 10 10 0 N" on import in a command sequence, where an additional command L (=lineTo) is introduced. So when saving you get "M 0 0 L 5 10 10 0 N".

A different approach would be to keep the current way of using a command M (=moveTO) with multiple pairs of coordinates in the command sequence, and then draw the lines, when rendering the shape. I think, that would request some changes in EnhancedCustomShape2d::CreateSubPath in svx. I haven't tried it yet, so I can't estimate how extensive the changes would be.

Is the approach with a change on import acceptable?

Kind regards
Regina

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.