Created attachment 189302 [details] ODT, example of shifted SVG, and printscreen for bug 1) open source.odg 2) set args(0).Value="..." in macro to your url for exported SVG 3) run macro 4) open exported SVG in Draw -> and object will be shifted a little bit beyond page (as in printscreen.png) Sub export2SVG dim oDoc as object, oFilter as object,oSel as object oDoc=ThisComponent createUnoService("com.sun.star.frame.DispatchHelper").executeDispatch(oDoc.CurrentController.Frame , ".uno:SelectAll", "", 0, array()) 'select curve oSel=oDoc.CurrentController.Selection dim args(1) as new com.sun.star.beans.PropertyValue args(0).Name="URL" args(0).Value="file:///d:/bug.svg" args(1).Name="MediaType" args(1).Value="image/svg+xml" oFilter=CreateUnoService("com.sun.star.drawing.GraphicExportFilter") with oFilter .setSourceDocument(oSel) 'only Selection .filter(args()) end with End Sub Version: 7.6.1.1 (X86_64) / LibreOffice Community Build ID: c7cda394c5de06de37d8109c310df89a4d4c3a98 CPU threads: 8; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win Locale: cs-CZ (cs_CZ); UI: cs-CZ Calc: CL threaded
Reproduced the path shift towards left and top, relative to the viewbox, in recent master build: Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: beaea2e992912b4747d790070b26371f557b1f57 CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Calc: threaded No repro in 7.2.7.2, repro in 7.3.7.2. Running the macro gives the shift, whereas using the GUI and exporting a selection as SVG does not. Bibisected with linux-64-7.3 repo to first bad commit 3f3bb1e4bd161910745836a2d3153aae54f65089 which points to core commit: commit a9f6d98859321e1b9029acc0c6e9347f4c1cf3b7 author Armin Le Grand (Allotropia) Mon Jan 31 19:44:19 2022 +0100 committer Xisco Fauli Fri Feb 11 20:36:00 2022 +0100 tdf#126319 Corrected bitmap creation from metafile Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129235 With the sample file, I used a command of the type: instdir/program/soffice --invisible --headless /home/stragu/Downloads/bad-export-svg/source.odg macro://./Standard.Module1.export2SVG A diff between the before and after outputs shows only the d attribute of the path element has changed. Armin, can you please have a look? Xisco, copying you in because of your interest in SVG.
Dear Kamil Landa, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Bug is still present Version: 25.8.1.1 (X86_64) Build ID: 54047653041915e595ad4e45cccea684809c77b5 CPU threads: 8; OS: Windows 10 X86_64 (build 17763); UI render: Skia/Raster; VCL: win Locale: cs-CZ (cs_CZ); UI: cs-CZ Calc: CL threaded Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 7f4868348c14b305fcd75744e1e3544d0d3a5d61 CPU threads: 8; OS: Windows 10 X86_64 (build 17763); UI render: Skia/Raster; VCL: win Locale: cs-CZ (cs_CZ); UI: en-US Calc: CL threaded