Bug 138420 - Visio drawing dimension lines incorrectly read by LibreOffice Draw
Summary: Visio drawing dimension lines incorrectly read by LibreOffice Draw
Status: NEW
Alias: None
Product: Document Liberation Project
Classification: Unclassified
Component: libvisio (show other bugs)
(earliest affected)
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
Keywords: filter:visio
Depends on:
Blocks: Visio
  Show dependency treegraph
Reported: 2020-11-23 03:50 UTC by Rick Coates
Modified: 2021-02-07 06:53 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:

Sample files - Visio vs. LibreOffice (149.34 KB, application/x-compressed)
2020-11-23 03:54 UTC, Rick Coates
Simple file showing problem. (22.43 KB, application/x-compressed)
2020-12-17 03:53 UTC, Rick Coates
VSD file with dimensions which shows correctly (134.50 KB, application/vnd.visio)
2021-01-14 14:37 UTC, Bartosz

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Coates 2020-11-23 03:50:51 UTC
A Visio drawing file with dimensions and dimension lines has the dimension lines with arrow heads when opened with LibreOffice. Have not been able to find a reasonable workaround.

Steps to Reproduce:
1.Open Visio drawing in the attachment with LibreOffice.

Actual Results:
Dimension extension lines have arrowheads as well as the dimension lines themselves.

Expected Results:
Dimension lines have arrowheads, dimension extension lines should not.

Reproducible: Always

User Profile Reset: Yes

Additional Info:
Version: (x64)
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 1 Rick Coates 2020-11-23 03:54:12 UTC
Created attachment 167489 [details]
Sample files - Visio vs. LibreOffice

Sample files:
Visio drawing (Sample.vsd)
Image of how it renders in Microsoft Office Visio (Visio.jpg)
Converted LibreOffice file (Sample.odg)
Image of it renders in Office (LibreOffice.jpg)
LibreOffice version (Versiion.txt)
Comment 2 raal 2020-12-09 17:04:26 UTC
Confirm Version:
Build ID: b541cd9a8038810ce449f8c49ae179d9d6eaa7e8
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 3 Bartosz 2020-12-16 10:06:04 UTC
Could you please simplify the .vsd file, to contain only single signal, with Dimension lines?

Which Visio version was used for creating this sample file?
Comment 4 Rick Coates 2020-12-17 03:53:05 UTC
Created attachment 168247 [details]
Simple file showing problem.
Comment 5 Rick Coates 2020-12-17 03:54:31 UTC

Visio 2007 12.0.6749.5000 (SP3 MSO
Comment 6 Bartosz 2021-01-14 11:18:19 UTC
Thanks for information. I have started working on that issue.

Could you please provide the step by step instruction how to create such Drawing Dimension lines?

I'm not expert in Visio and I would like to experiment with different line cases.
Comment 7 Bartosz 2021-01-14 14:37:31 UTC
Created attachment 168883 [details]
VSD file with dimensions which shows correctly

I checked with Visio and I cannot create such file wchich is wrongly imported.
Comment 8 Rick Coates 2021-01-16 03:33:47 UTC

This is from a larger document. It has been trimmed, then trimmed more so it is now much smaller. The original document exhibits the same behavior.

The original document was created some years ago. It uses complex extension lines on dimensions. I don't remember how to create these extension lines, but it was done with ordinary Visio operations.

I can look into seeing if I can re-create this kind of extension line.
Comment 9 Aron Budea 2021-02-07 06:53:24 UTC
I see these comments from frob_tea still haven't made it into the bug, so dumping the relevant IRC lines from the QA channel from 01-28 here:

<frob_tea> anybody interested to add a comment to #138420 on my behalf?
<frob_tea> buovjaga: I'm not an original reporter, no.. though I do have some knowledge on VSD format ;)
<frob_tea> buovjaga: it looks like original VSD has 'shapes' for those dimension lines which supposed to by stroked with arrows at the ends
<frob_tea> buovjaga: and on a surface what libvisio is doing looks sort of correct
<frob_tea> buovjaga: I think the problem is that we didn't expect something fancy from stencil and 'scratch' (most likely) elements
<frob_tea> buovjaga: anyway, to move forward with that we need to identify how Visio is doing it. for that somebody with access to Visio will need to analyze ShapeSheets
<frob_tea> buovjaga: I didn't find anything interesting in the file which wouldn't be understood by libvisio in general; so it's on the higher 'logical' level of interpretation