Bug 133722 - An image or diagram made in Draw when a scale factor is used will give wrong dimensions markers when copied to Write
Summary: An image or diagram made in Draw when a scale factor is used will give wrong ...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-06 09:16 UTC by Romke
Modified: 2020-06-07 14:15 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
drawDraw_with_dimension_marker (8.65 KB, application/vnd.oasis.opendocument.graphics)
2020-06-06 18:14 UTC, Romke
Details
Write_with_image_copied (9.43 KB, application/vnd.oasis.opendocument.text)
2020-06-06 18:15 UTC, Romke
Details
Writer document with Draw shape pasted and OLE with dimensioning embedded (18.82 KB, application/vnd.oasis.opendocument.text)
2020-06-07 04:02 UTC, V Stuart Foote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Romke 2020-06-06 09:16:51 UTC
Description:
When Draw is setup to use scaling (e.g: 5:1 )(Options->Draw->Scale (Drawing scale))
and an image or diagram is made that has dimension markers.
When this image is copied from Draw to Write than the dimension markers change, while it shouldn't. (the number length changes)
When using a scaling factor of 5:1 and the dimension marker shows 10mm in draw a copied image will show 50mm in write: This is wrong!!!

Steps to Reproduce:
1.setup draw to scaling. e.g: 5:1 (Options->Draw->Scale (Drawing scale))
2.make image or diagram and include dimension markers e.g: draw a block and add dimension markers
3.copy image to write

Actual Results:
When using a scaling factor of 5:1 and the dimension marker shows 10mm in draw a copied image will show 50mm in write: This is wrong the dimension marker should stay at 10mm.

Expected Results:
when using scaling in Draw and using dimension markers in a diagram or image then when copying the image to write the dimension markers should not change!


Reproducible: Always


User Profile Reset: No



Additional Info:
As far as i know this issue has been there always.
Comment 1 V Stuart Foote 2020-06-06 18:08:42 UTC
Please attach a sample document. Also is the Draw image copied, or is it being inserted as an object (OLE) would expect different behaviors.
Comment 2 Romke 2020-06-06 18:14:36 UTC
Created attachment 161695 [details]
drawDraw_with_dimension_marker
Comment 3 Romke 2020-06-06 18:15:03 UTC
Created attachment 161696 [details]
Write_with_image_copied
Comment 4 Romke 2020-06-06 18:16:16 UTC
Files are attached. Image copied from Draw to write using <cntrl-C> <cntrl-V>
Comment 5 V Stuart Foote 2020-06-07 04:02:50 UTC
Created attachment 161706 [details]
Writer document with Draw shape pasted and OLE with dimensioning embedded

Copy paste places a Draw shape--with the unwanted dimension.

Insert -> Object -> OLE Object 'From file' has the desired scaled dimension.

However, working with the OLE is a bit cumbersome--you MUST set drawing canvas to the size that you need to work with. Also, the placement of the OLE onto a Writer document will include the OLE frame -- not just the Draw canvas, so positioning and sizing has to include the extra space.

It is awkward but the key is that the dimensionless is an attribute of the Drawing, placement (copy/paste) as a shape takes a clip from the Draw canvas.
Comment 6 V Stuart Foote 2020-06-07 04:06:32 UTC
(In reply to V Stuart Foote from comment #5)

Oh, and the OLE Draw needs attached needs to have its 'Original Size' selected from its properties.
Comment 7 Romke 2020-06-07 06:54:12 UTC
OLE is not a solution, It is unworkable. Copying an image into Write should be as easy a copy/paste and afterwards the size and position of the image in the write document can be changed, this does not work with OLE.
Comment 8 Romke 2020-06-07 07:19:10 UTC
I found a workable solution:

Select and copy image from Draw.
in Writer Edit->Paste special
Select "(1) LibreOffice 6.4 Drawing" or "(2) Graphics Device Interface metafile (GDI)" 

This does the trick!
Selecting (1) will get you an OLE image in a correct frame
Selecting (2) will get you a image in a frame
Comment 9 V Stuart Foote 2020-06-07 14:15:23 UTC
OK, NAB. And via the keyboard that is a <Ctrl>+<Shift>+V for the paste special dialog to see the available formats.