Bug 127135 - EDITING:copy a shape from old .odg file, the shape is distorted
Summary: EDITING:copy a shape from old .odg file, the shape is distorted
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
6.2.6.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-24 08:26 UTC by VincentYu
Modified: 2019-09-18 11:23 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
contains logicgate shapes (16.17 KB, application/vnd.oasis.opendocument.graphics)
2019-08-24 08:26 UTC, VincentYu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description VincentYu 2019-08-24 08:26:10 UTC
Created attachment 153618 [details]
contains logicgate shapes

create a new .odg file, default setting, paste a shape from the attached file. The shape is distorted.
Comment 1 VincentYu 2019-08-24 08:32:22 UTC
The old .odg file displays correctly, though.
Comment 2 VincentYu 2019-08-24 08:33:31 UTC
The old .odg file claims to be last updated in 2015.
Comment 3 VincentYu 2019-08-24 08:35:11 UTC
I tried to save it as .fodg and copy the "custom-shape" part of the xml over but it's still distorted.
Comment 4 Jacques Guilleron 2019-08-24 09:46:39 UTC
Hi Vincent,

I dont reproduce with
LO 6.4.0.0.alpha0+ (x86) Build ID: 5ba84c3c7080d55d86b8b39db077b6da36cb700a
CPU threads: 2; OS: Windows 6.1; UI render: default; VCL: win; 
Locale: fr-FR (fr_FR); UI-Language: en-US Calc: CL

Can you please precise your OS version?
Thank you.
Comment 5 VincentYu 2019-08-24 12:16:22 UTC
(In reply to Jacques Guilleron from comment #4)
> Hi Vincent,
> 
> I dont reproduce with
> LO 6.4.0.0.alpha0+ (x86) Build ID: 5ba84c3c7080d55d86b8b39db077b6da36cb700a
> CPU threads: 2; OS: Windows 6.1; UI render: default; VCL: win; 
> Locale: fr-FR (fr_FR); UI-Language: en-US Calc: CL
> 
> Can you please precise your OS version?
> Thank you.

Win8.1Pro(64-bit)
Comment 6 VincentYu 2019-08-24 12:28:30 UTC
Windows 6.3.9600 with latest updates applied.
Locale en-US; UI-language en-US
Comment 7 Jacques Guilleron 2019-08-24 17:16:35 UTC
Thank you for thr feedback.
Have a nice day.
Comment 8 Regina Henschel 2019-08-24 18:44:51 UTC
There had been changes for styles. There has already been some fixes for "Resize shape to fit text". But this seems to be another bug in this area. Seems like "Resize shape to fit text" is set for pasted shape, although neither the shape in its source document nor the default style in the target document has this setting enabled.

You can do this:
a) Drag the drawings from your file into a (new) theme in the Gallery. That "burns in" the styles, which means that all style settings used in the shape where transformed to direct formatting. If you will use the shape then in a new document, it has all needed attributes.
b) Do not use Ctrl+V, but use the item "drawing format" from the drop-list of the paste icon. That "burns-in" the styles too.
c) Get the styles into your new document before pasting an old drawing. For that purpose use menu Page > insert page from file. Choose the old file and import the complete page. In case the page size is different do not adapt the drawings. After you have done this, you will find new entries in the Styles&Formatting pane in the sidebar. After you have transferred the styles this way, you can delete the additional page. If you now copy a shape from your old document, it's style exists and it is drawn correctly. Drag&Drop from old to new will then work too. If you need this drawings often, you should consider to start with a document template, that has the needed styles.
Comment 9 VincentYu 2019-08-24 22:33:19 UTC
(In reply to Regina Henschel from comment #8)
> There had been changes for styles. There has already been some fixes for
> "Resize shape to fit text". But this seems to be another bug in this area.
> Seems like "Resize shape to fit text" is set for pasted shape, although
> neither the shape in its source document nor the default style in the target
> document has this setting enabled.
> 
> You can do this:
> a) Drag the drawings from your file into a (new) theme in the Gallery. That
> "burns in" the styles, which means that all style settings used in the shape
> where transformed to direct formatting. If you will use the shape then in a
> new document, it has all needed attributes.
> b) Do not use Ctrl+V, but use the item "drawing format" from the drop-list
> of the paste icon. That "burns-in" the styles too.
> c) Get the styles into your new document before pasting an old drawing. For
> that purpose use menu Page > insert page from file. Choose the old file and
> import the complete page. In case the page size is different do not adapt
> the drawings. After you have done this, you will find new entries in the
> Styles&Formatting pane in the sidebar. After you have transferred the styles
> this way, you can delete the additional page. If you now copy a shape from
> your old document, it's style exists and it is drawn correctly. Drag&Drop
> from old to new will then work too. If you need this drawings often, you
> should consider to start with a document template, that has the needed
> styles.

Tried b), it worked. Also, deleting text before regular copy/paste worked too.
Comment 10 Xisco Faulí 2019-09-18 11:23:51 UTC
Let's close it as RESOLVED NOTABUG then...
@Regina, thanks for your feedback