Bug 108329 - Convert To Contour distorts curves
Summary: Convert To Contour distorts curves
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 168382 (view as bug list)
Depends on:
Blocks: Shapes
  Show dependency treegraph
 
Reported: 2017-06-04 02:31 UTC by ulatekh
Modified: 2025-10-10 21:44 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Reproduction case (8.99 KB, application/vnd.oasis.opendocument.graphics)
2017-06-04 02:31 UTC, ulatekh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ulatekh 2017-06-04 02:31:33 UTC
Created attachment 133835 [details]
Reproduction case

I wanted to scale my drawing, and scale the line-widths too, and https://forum.openoffice.org/en/forum/viewtopic.php?f=11&t=5368 told me I could do that if I first converted my drawing to a contour.  When I did so, several of the curves were distorted.

Enclosed is a snippet from a much larger drawing, containing one of the curves that reproduces this behavior.

Note that Modify -> Combine also produces distorted results, but that might be "as intended", I'm not sure.

This is with LibreOffice Draw 5.1.6.2-8 running under Fedora Core 24.
Comment 1 Xisco Faulí 2017-06-04 10:22:41 UTC
Thank you for reporting the bug.
it seems you're using an old version of LibreOffice.
Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 2 Regina Henschel 2017-06-04 13:25:03 UTC
I confirm the bug for Version: 5.4.0.0.alpha1+
Build ID: 8c0be54a7da6262dffe04357121814dd22b5d7fe
CPU threads: 4; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86@62-TDF, Branch:MASTER, Time: 2017-05-15_01:35:45
Locale: de-DE (de_DE); Calc: group

This happens in the special situation, that the control point has identical position as its anchor point, here the right ones.

There are some workarounds:
(1) Drag the control point a little bit away from the anchor point before converting to contour.
(2) Select the drawing and export it to svg. Then use the svg-image instead of the drawing. Scale the SVG-image then. In SVG a line is transformed including the width.
(3) Adapt the line widths after you have scaled the drawing. For that way, I would write a macro, that does scaling and adapting the line width in one step. The advantage of using a macro is, that the drawing has still the same structure of - in this case - two lines and four Bézier-curves.
Comment 3 Regina Henschel 2017-06-04 14:09:16 UTC
Behavior was already this wrong way in OOo3.2.1
Comment 4 ulatekh 2017-07-14 02:31:25 UTC
Rather than learn Yet Another Bloody Scripting Language, I just unzipped the .odg file and edited the content.xml file directly, using find/replace to change all the values associated with "svg:stroke-width" entries.

Still...could this bug possibly get fixed? Especially given how easy it is to reproduce?
Comment 5 QA Administrators 2018-07-15 02:42:54 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2020-07-15 04:03:29 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2022-07-16 03:53:59 UTC Comment hidden (obsolete)
Comment 8 t1m013y 2025-09-14 10:16:59 UTC
Still present in:

Version: 25.2.3.2 (x86) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 20; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: threaded
Comment 9 t1m013y 2025-09-14 11:31:48 UTC
Also present in:

Version: 25.8.1.1 (X86_64)
Build ID: 54047653041915e595ad4e45cccea684809c77b5
CPU threads: 20; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL threaded
Comment 10 raal 2025-10-10 21:44:13 UTC
*** Bug 168382 has been marked as a duplicate of this bug. ***