Bug 152309 - Copy/paste of cropped images between different modules is inconsistent
Summary: Copy/paste of cropped images between different modules is inconsistent
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paste Image-Crop
  Show dependency treegraph
 
Reported: 2022-11-30 09:43 UTC by Mike Kaganski
Modified: 2023-09-18 15:46 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2022-11-30 09:43:59 UTC
Create a Draw document.
1. Insert an image there.
2. Right-click it, and select Crop
3. Crop some part from top
4. Select the cropped image, and copy to clipboard.
5. Create a new Draw document, paste there
6. Create a new Impress document, paste there
7. Create a new Writer document, paste there
8. Create a new Calc document, paste there

=> After steps 5, 6, 7, 8, the pasted image is cropped correctly.

===

Create an impress document.
Repeat steps 1-8.

=> After steps 5, 6, 7, 8, the pasted image is cropped correctly.

===

Create a Writer document.
Repeat steps 1-8.

=> After step 7, the pasted image is cropped correctly.
=> After steps 5, 6, 8, the pasted image is NOT cropped.

===

Create a Calc document.
Repeat steps 1-8.

=> After step 8, the pasted image is cropped correctly.
=> After steps 5, 6, 7, the pasted image is NOT cropped.

By now, the conclusion is that copying cropped image would always allow to paste cropped image into the same module; when the source is Draw/Impress, it pastes cropped image also into other modules.

Now what happens when you copy the *pasted* cropped image (initially originating from Draw/Impress), and try to paste this elsewhere?

When such a cropped image, created in Impress, was pasted into Writer, then copied from there, and pasted to other modules, then in all modules, the pasted image is cropped correctly - unlike when the crop was created in Writer!

When such a cropped image, created in Impress, was pasted into Calc, then copied from there, and pasted to other modules, then only in Calc, the pasted image is cropped correctly, and all other modules receive uncropped one - just as when the crop was initially created in Calc.

The expectation would be that no matter what the source is, and which were the intermediate steps, the cropped image copied into clipboard arrives cropped into any module.
Comment 1 Buovjaga 2023-03-09 12:37:10 UTC
Repro. Already in oldest of linux 43all repo.

Arch Linux 64-bit, X11
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 013fbfb592f71c1f0a60b6a7ec08aded375515ac
CPU threads: 8; OS: Linux 6.2; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 9 March 2023