Bug 156541 - Drawing object increases in size when pasting-overwriting multiple times from Impress to Writer
Summary: Drawing object increases in size when pasting-overwriting multiple times from...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected
Depends on:
Blocks: Paste FontWork-WordArt
  Show dependency treegraph
 
Reported: 2023-07-30 19:28 UTC by Telesto
Modified: 2023-08-01 13:31 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Sample (15.77 KB, application/vnd.oasis.opendocument.presentation)
2023-07-30 19:28 UTC, Telesto
Details
another sample fontwork (15.58 KB, application/vnd.oasis.opendocument.presentation)
2023-08-01 13:31 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2023-07-30 19:28:13 UTC
Description:
Fontwork increases in size when pasting the same fontwork multiple times from Impress to Writer

Steps to Reproduce:
1. Open the attached file
2. Copy the fontwork
3. Open New Writer document
4. Press and hold CTRL+V

Actual Results:
The fontwork increases in size

Expected Results:
The fontwork increases in size


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e26aeb882dd236adf19679d5df9b7ba5da1ed226
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL threaded
Comment 1 Telesto 2023-07-30 19:28:25 UTC
Created attachment 188664 [details]
Sample
Comment 2 Telesto 2023-07-31 10:00:29 UTC
Also in
Version: 7.0.7.0.0+ (x64)
Build ID: 626ea4e62a3e5005fe9825923a1c0c5bdb61cc08
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL

and in
Version: 6.1.6.3
Build ID: 5896ab1714085361c45cf540f76f60673dd96a72
CPU threads: 4; OS: Windows 6.3; UI render: default; 
Locale: nl-NL (nl_NL); Calc: CL

not in (or only increasing once) in
Versie: 4.4.7.2 
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Locale: nl_NL
Comment 3 Stéphane Guillou (stragu) 2023-08-01 13:27:23 UTC
Reproduced in recent master build:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d16d86685afdf3d321cc282a39a65f38381b6eaa
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

With example document, original size is 11.62 × 4.00 cm, second paste in Writer is 11.65 × 4.03 cm, then keeps growing on subsequent pastes.

Before 6.1, size would increase on first paste form 11.61 × 3.99 to 11.61 × 4.01 and eventually plateau at 11.63 × 4.01 after a few pastes, which is still an issue but is barely noticeable by the user.
Similar in OOo 3.3.

Change in behaviour was bibisected with linux-64-6.1 to only a range as paste would crash because of bug 116977: dfefe448c41921f2f1e54d3f69b8b9e89031d055..91b0d2122bdee361bf5412a42d48ff051159cbf2

Notes:
- also reproduce with a simple shape
- not reproduced when pasting into Calc or Draw, and not reproduced when pasting from Writer to Impress. That's because Writer overwrites the select object, whereas other components make copies. I assume it is related to rounding errors and making an object fit into the allocated space when overwriting.
- dimensions can increase or decrease depending on the size of the original object
Comment 4 Stéphane Guillou (stragu) 2023-08-01 13:31:45 UTC
Created attachment 188695 [details]
another sample fontwork

With this fontwork example, the steps result in differently drastic results in 6.0 and 6.1:
- in 6.0, slowly changes dimension and then rapidly reduces in height
- in 6.1, continually increases in height while first increasing, then decreasing, then increasing again in width

So issue depends on original object and did not start in 6.1.