Bug 72009

Summary: VIEWING: some elements misplaced of a shrunk OLE Draw
Product: LibreOffice Reporter: Brett Wuth <wuth>
Component: DrawingAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: jmadero.dev
Version: 3.4.2 release   
Hardware: Other   
OS: All   
Whiteboard: BSA
i915 platform: i915 features:
Attachments: Example Text document with embedded Draw document
Example Draw document that triggers the bug
Example of incorrect screen rendering
Examle of correct print rendering; should be what screen rendering looks like
Document with drawing resized
Document with drawing resized exported to pdf
File Looking Good Resized
Screenshot of 3.5.4.2 incorrect rendering of File Looking Good Resized

Description Brett Wuth 2013-11-25 22:04:55 UTC
Created attachment 89790 [details]
Example Text document with embedded Draw document

Problem description: 

Embedding a Draw document in a Text Document as an OLE object, and then reducing the scale on the OLE object causes some but not all elements of the Draw document to be misplaced when displayed on the screen.  Printing and exporting to PDF work correctly.


Steps to reproduce:
1. Create a Draw document containing boxed text and connecting lines
2. Insert the Draw document in an Text Document: menu:Insert>Object>OLE Object
3. reduce the scale of the object

Current behavior:
* Some elements (lines and open boxes) appear not to be scaled, while other elements (filled boxes, text) are scaled.  As a result elements are misplaced relative to each other.

Expected behavior:
* The embedded Draw document should appear properly scaled with all elements in their correct relative position.

Tested with
* LibreOffice 4.1.3 for MS-Windows -- bug found
* LibreOffice 3.5.4.2 for Debian Linux 7.0 -- bug found
* OpenOffice 4.0.1 for MS-Windows -- bug not found
Operating System: All
Version: 3.5 all versions
Comment 1 Brett Wuth 2013-11-25 22:07:03 UTC
Created attachment 89791 [details]
Example Draw document that triggers the bug
Comment 2 Brett Wuth 2013-11-25 22:07:57 UTC
Created attachment 89792 [details]
Example of incorrect screen rendering
Comment 3 Brett Wuth 2013-11-25 22:08:54 UTC
Created attachment 89793 [details]
Examle of correct print rendering; should be what screen rendering looks like
Comment 4 Jose Gómez 2014-05-19 11:11:38 UTC
Created attachment 99320 [details]
Document with drawing resized
Comment 5 Jose Gómez 2014-05-19 11:12:17 UTC
Created attachment 99322 [details]
Document with drawing resized exported to pdf
Comment 6 Jose Gómez 2014-05-19 11:12:51 UTC
I can confirm the issue with LibreOffice 4.2.4.2.

Note that the resized diagrams do not appear correctly when the export to pdf option is used.
Comment 7 Joel Madero 2014-05-20 15:03:38 UTC
Updating version - our version field is the oldest version we see the problem, not the last version. We just put comments for that
Comment 8 Joel Madero 2014-05-20 15:06:01 UTC
How did you resize - I just did it two ways and the file came out fine. 

Steps:

1. Downloaded your file "Example Text document with embedded Draw document"
2. Grabbed the corner and resized down
3. Undid the resize
4. Right clicked and went into ole properties
5. Set scale to 50%/45% for height and width

Both show fine - attaching document to show
Comment 9 Joel Madero 2014-05-20 15:06:22 UTC
Created attachment 99422 [details]
File Looking Good Resized
Comment 10 Brett Wuth 2014-05-26 00:26:25 UTC
Created attachment 99815 [details]
Screenshot of 3.5.4.2 incorrect rendering of File Looking Good Resized

(In reply to comment #9)
> Created attachment 99422 [details]
> File Looking Good Resized

The file you provided (99422:File Looking Good Resized) doesn't render
correctly to the screen with LibreOffice 3.5.4.2 on Debian Linux 7.0.
See the attached screenshot.  Note for example how the
orange/yellow/blue/gray filled boxes are place higher than the lines
that connect to them, thus making them disconnected from the
non-filled boxes below them.

Does this file render correctly in your version of LibreOffice?  If so,
which version of LibreOffice are you using and on what platform?

P.S.: file  89790: "Example Text document with embedded Draw document"
is also an example document with incorrect rendering.  The resizing is
just not as dramatic as your example.  The incorrect rendering can be
seen when comparing  89792: "Example of incorrect screen rendering" with
 89793: "Examle of correct print rendering"
Comment 11 Brett Wuth 2014-05-26 00:28:19 UTC
Marked as confirmed, per comment 6.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.