Issue 75928

Summary: Separating a group imported from DXF distorts the drawing
Product: Draw Reporter: honza_k <kratky>
Component: open-importAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: dm, issues, kpalagin
Version: OOo 2.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
A DXF file to demonstrate this bug
none
a WMF file to test the behavior after separating the group none

Description honza_k 2007-03-30 16:43:59 UTC
I'm using OpenOffice 2.2, Czech version

After importing a DXF file (I will attach it), the file is imported as one group
and looks exactly the same as in the application where it was created.

To be able to edit it, you have to first break the group apart to separate
objects. Once you do it, some of the shapes would be distorted and the positions
and sizes of the text would be moved.

How to reproduce:

1. Import the attached drawing into OODraw using Open...
2. You will see 3 schematics in one group appear.
3. Right click on the group and choose "Separate" or "Break apart" ... I don't
know exactly the english word for this menu item, in the Czech language it is
"Rozpojit" (it separates previously grouped objects)
4. Now you see that all the texts move, and the triangle in the upper right
schematics (operational amplifier) will loose one of its endpoints ...

Similar behavior occurs when I open a WMF file - the curves and lines maintain
their positions, but the text moves and even the font is changed!

Strange thing is, that before separating the group, the imported image looks as
it should ... Separating it into objects should not change the shapes and fonts!
Comment 1 honza_k 2007-03-30 16:44:58 UTC
Created attachment 44077 [details]
A DXF file to demonstrate this bug
Comment 2 kpalagin 2007-04-01 18:08:29 UTC
Confirming with 2.2m8 - all text jumps around.
Comment 3 wolframgarten 2007-04-02 07:53:59 UTC
Reproducible. Reassigned.
Comment 4 Armin Le Grand 2007-04-02 09:58:51 UTC
AW: It's not a group, it's a metafile (look at bottom left when object is
selected for more object info). BTW: With groups, it would not be necessary to
break the group first, You also may 'enter' it, a speciality of OOo/SO.

AW->SJ: Metafile breakup and text jumping around. Is this known?
Comment 5 honza_k 2007-04-02 10:21:01 UTC
Created attachment 44154 [details]
a WMF file to test the behavior after separating the group
Comment 6 honza_k 2007-04-02 10:23:29 UTC
See the last file I added - it is a WMF file that after separating also distorts
the texts - it does not change the texts' positions, but it completely distorts
the fonts and makes them unusable. The only thing that remains "as was" is the
stretched text in the middle.

And the rectangle with thick border is not a rectangle anymore, but a
combination of polygons ...
Comment 7 Armin Le Grand 2007-04-02 12:00:21 UTC
AW->honza_k: Yes, that's what metafiles contain. A Metafile is a record of an
application painting something to a device. If the application (NOT OOo(!), the
app You used to produce the WMF) creating the metafile paints rectangles
spliiting them in funny smaller graphic pieces, then the metafile contains
exactly that. WMF is NOT a high-level vector format. HTH.
Comment 8 dimitri 2008-05-22 18:46:54 UTC
If you create a drawing with OOo, turn it into a metafile (Convert to 
Metafile) and then "break" it, you get the same behaviour.  No one else to 
blame.

See also Issue 87039.
Comment 9 wolframgarten 2008-05-23 15:11:39 UTC
Target changed.