Bug 151467 - FILEOPEN VSD/VSX text shifted due to too large scale of text and tabs stops
Summary: FILEOPEN VSD/VSX text shifted due to too large scale of text and tabs stops
Status: NEW
Alias: None
Product: Document Liberation Project
Classification: Unclassified
Component: libvisio (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:visio
Depends on:
Blocks: Visio
  Show dependency treegraph
 
Reported: 2022-10-11 08:01 UTC by opsapo
Modified: 2024-10-20 13:03 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example vsd file (423.00 KB, application/vnd.visio)
2022-10-11 08:03 UTC, opsapo
Details
Screenshot from Visio which renders properly (127.17 KB, image/png)
2022-10-11 08:04 UTC, opsapo
Details
VDX file where text shift is visible (2.27 MB, application/vnd.visio)
2024-10-19 22:18 UTC, Bartosz
Details
Tabs stops definition in Visio (53.18 KB, image/png)
2024-10-19 22:28 UTC, Bartosz
Details
Margins settings in file from Visio (62.48 KB, image/png)
2024-10-19 23:15 UTC, Bartosz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description opsapo 2022-10-11 08:01:52 UTC
Description:
LibreOffice Draw display a .vsd file incorrectly. I've attached a screenshot from Visio that renders it correctly

Steps to Reproduce:
1. open provided file
2. compare with screenshot

Actual Results:
The file is not rendered properly

Expected Results:
Should render like Visio


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 7.3.6.2 (x64) / LibreOffice Community
Build ID: c28ca90fd6e1a19e189fc16c05f8f8924961e12e
CPU threads: 16; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: pt-PT (pt_PT); UI: en-GB
Calc: threaded
Comment 1 opsapo 2022-10-11 08:03:55 UTC
Created attachment 182964 [details]
Example vsd file
Comment 2 opsapo 2022-10-11 08:04:42 UTC
Created attachment 182965 [details]
Screenshot from Visio which renders properly
Comment 3 Aron Budea 2022-10-29 01:29:58 UTC
Confirmed in LO 7.5.0.0.alpha0+ (5a1f41a0d3aab15c113651f2edc9d4137ae99063), 3.5.0.3 (3.3.0 doesn't open the file) / Windows.

Looks like an import problem, and not a rendering problem, those tab stops mess with text positioning.
Comment 4 Bartosz 2024-10-19 22:18:59 UTC
Created attachment 197158 [details]
VDX file where text shift is visible
Comment 5 Bartosz 2024-10-19 22:28:47 UTC
Created attachment 197159 [details]
Tabs stops definition in Visio
Comment 6 Bartosz 2024-10-19 22:52:35 UTC
The tabs stops defined in LibreOffice after import is too large:
  <style:style style:name="P6" style:family="paragraph">
   <style:paragraph-properties fo:margin-left="3.9cm" fo:margin-right="0cm" fo:margin-top="0cm" fo:margin-bottom="0cm" fo:line-height="140%" fo:text-align="start" fo:text-indent="-3.9cm" loext:tab-stop-distance="0cm">
    <style:tab-stops>
     <style:tab-stop style:position="0.875cm"/>
     <style:tab-stop style:position="3.4cm" style:type="center"/>
     <style:tab-stop style:position="3.9cm"/>
    </style:tab-stops>
   </style:paragraph-properties>
  </style:style>

It seems it needs to be translated
Comment 7 Bartosz 2024-10-19 23:15:11 UTC
Created attachment 197161 [details]
Margins settings in file from Visio