Bug 117199 - FILEOPEN Grouping of shapes are not imported to LO Draw
Summary: FILEOPEN Grouping of shapes are not imported to LO Draw
Status: NEW
Alias: None
Product: Document Liberation Project
Classification: Unclassified
Component: libvisio (show other bugs)
(earliest affected)
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: filter:visio
Depends on:
Blocks: Visio
  Show dependency treegraph
Reported: 2018-04-24 05:51 UTC by Walter Cheuk
Modified: 2022-04-16 23:33 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:

VSDX file (129.23 KB, application/vnd.ms-visio.drawing)
2018-04-25 04:28 UTC, Walter Cheuk
VSD file (240.00 KB, application/vnd.visio)
2019-07-15 09:03 UTC, Walter Cheuk
Drawings with grouped and ungrouped shapes. It could be used for comparison (60.70 KB, application/zip)
2019-07-27 00:49 UTC, Bartosz
Grouped and ungrouped shapes in Visio11 format (38.21 KB, application/zip)
2019-07-27 23:27 UTC, Bartosz
Grouped and ungrouped shapes in Visio15 format (52.51 KB, application/zip)
2019-07-31 04:55 UTC, Bartosz

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Cheuk 2018-04-24 05:51:54 UTC
While selecting and moving objects in VSD/VSDX files, instead of moving a object (e.g. a computer or server) as single object, the "skins", "lines" are being peel off one by one.

I am not a user using Inkscape to draw vector graphics. I just want to draw network diagrams just I do in Visio.

Steps to Reproduce:
1. Open any VSD/VSDX files
2. Select and move a object
3. Observe the result

Actual Results:  
Objects are treated as single objects

Expected Results:
parts of the objects are peeled off one by one

Reproducible: Always

User Profile Reset: No

Additional Info:

User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:59.0) Gecko/20100101 Firefox/59.0
Comment 1 Walter Cheuk 2018-04-24 06:22:45 UTC
Sorry, the "Actual Results" and "Expected Results" should be reversed.
Comment 2 raal 2018-04-24 20:17:16 UTC

Thank you for filing the bug. Please send us a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO', so please do change it back to 'UNCONFIRMED' once you have attached a document.
(Please note that the attachment will be public, remove any sensitive information before attaching it.)
How can I eliminate confidential data from a sample document?
Thank you
Comment 3 Walter Cheuk 2018-04-25 04:28:19 UTC
Created attachment 141615 [details]
VSDX file
Comment 4 raal 2018-04-25 04:57:17 UTC
I can confirm with Version (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a) and 6.1 Master.
Comment 5 Bartosz 2019-06-26 20:23:26 UTC
Hello @Fridrich.
Do you know how it could be implemented?
Is it something for begginner in libvisio world?
Comment 6 Walter Cheuk 2019-06-27 01:26:12 UTC
I have an idea about this problem. As the F/OSS world already has Inkscape for vector graphics creation. May be we should transform LO Draw into a diagramming software?
Comment 7 Bartosz 2019-06-27 19:37:23 UTC
There are four types of shapes:
* Group - This MUST be the value of the attribute if the shape specified by this element has subshapes.
* Guide - Specifies that the shape is not shown.
* Foreign - Specifies that the data specified in this element’s ForeignData element is shown.
* Shape - Specifies that the shape does not meet any of the previous conditions

It seems that import of "Group Shape" should be mapped to LibreOffice draw.

Example of group shape:

<Shape ID='69' Type='Group' MasterShape='12'>
    <Cell N='LayerMember' V=''/>
        <Shape ID='70' Type='Shape' MasterShape='13'>
            <Cell N='LayerMember' V=''/>
            <Cell N='FillForegnd' V='#5b9bd5' F='Inh'/>
        <Shape ID='71' Type='Shape' MasterShape='14'>
            <Cell N='LayerMember' V=''/>
            <Cell N='FillForegnd' V='#5b9bd5' F='Inh'/>
            <Cell N='FillBkgnd' V='#4d4d4d' F='Inh'/>
Comment 8 Bartosz 2019-07-09 07:11:14 UTC
Does this issue exist also on VSD files?

Please attach file saved as VSD.
Comment 9 Walter Cheuk 2019-07-15 09:02:21 UTC
VSD file uploaded.

Yes, it has the same problem.
Comment 10 Walter Cheuk 2019-07-15 09:03:04 UTC
Created attachment 152773 [details]
VSD file
Comment 11 Bartosz 2019-07-27 00:49:09 UTC
Created attachment 153004 [details]
Drawings with grouped and ungrouped shapes. It could be used for comparison
Comment 12 Bartosz 2019-07-27 23:27:58 UTC
Created attachment 153010 [details]
Grouped and ungrouped shapes in Visio11 format
Comment 13 Bartosz 2019-07-31 04:55:42 UTC
Created attachment 153062 [details]
Grouped and ungrouped shapes in Visio15 format
Comment 14 Xisco Faulí 2019-12-03 10:29:10 UTC
Dear Bartosz,
This bug has been in ASSIGNED status for more than 3 months without any
activity. Resetting it to NEW.
Please assign it back to yourself if you're still working on this.
Comment 15 Bartosz 2021-05-10 14:16:02 UTC
Initial support for grouping: