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

--- Comment #17 from Razor T <[email protected]> ---
Created attachment 138935
  --> https://bugs.documentfoundation.org/attachment.cgi?id=138935&action=edit
Corrected simple 4-point polygon LO Draw exported SVG

Hi. Confirmed on openSUSE Tumbleweed, LO Version: 5.4.3.2
Build ID: 40m0(Build:2)

I know what the problem is.
I have looked deep in the LO source and cannot seem to find
 where the fault is.

The attached Draw project exports a corrupted SVG, also attached.
An example of a corrected SVG file is also attached. I think my
 correction is actually not quite the right point sequence but it works.

Take a close look. Do you see what happens? It happens consistently
 with every project no matter how many points.

The corrupted:
--------------
<path style="fill:url(#gradient1)" d="M 483,0 L 1118,292 483,800 610,1308
483,800 Z"/>
<path fill="none" stroke="rgb(0,0,0)" stroke-width="28" stroke-linejoin="round"
d="M 483,0 L 1118,292 483,800 610,1308 483,800 Z"/>

The corrected:
--------------
<path style="fill:url(#gradient1)" d="M 610,800 L 483,292 1118,800 483,1308
610,800 Z"/>
<path fill="none" stroke="rgb(0,0,0)" stroke-width="28" stroke-linejoin="round"
d="M 610,800 L 483,292 1118,800 483,1308 610,800 Z"/>

There are two ways to correct it: 
Shift each of the Y values to the RIGHT, or
Shift each of the X values to the LEFT.
(My corrected SVG file probably should have used the latter, not former.)

After that, correct the M point with the last point value.

See what I mean? Something in the exporter is mismatching the X and Y values,
 they are "out of phase" by one point so to speak.

Possible to whip up a quick fix and release while we wait for 6.x?
I need this to work. I get such fixed release packages in a few days
 here on openSUSE Tumbleweed.

Thank you.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to