Bug 458883 - Copy/Paste of a rectangular selection between two different files, looses selection contents
Summary: Copy/Paste of a rectangular selection between two different files, looses sel...
Status: REPORTED
Alias: None
Product: kolourpaint
Classification: Applications
Component: general (show other bugs)
Version: 21.12.2
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: kolourpaint-support
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-08 16:05 UTC by carlosmarinsebastian@gmail.com
Modified: 2024-04-15 09:19 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Image that works fine (325.16 KB, image/png)
2024-01-26 22:05 UTC, hugo_musso_gualandi
Details
Buggy image (90.29 KB, image/png)
2024-01-26 22:05 UTC, hugo_musso_gualandi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description carlosmarinsebastian@gmail.com 2022-09-08 16:05:11 UTC
SUMMARY
***
Copy/Paste of a rectangular selection between two different files, looses selection contents
Same action into same file works ok
***


STEPS TO REPRODUCE
1. Select a rectangular area in one file (with image contents) 
2. ctrl+C
3. go to another image in other file
4. ctrl+V
5. Rectangular area is marked, but is blanck

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 35 (Workstation Edition)

Last versions I assume. Just downloaded some hours ago

ADDITIONAL INFORMATION
If copy/paste is performed inside an unique file, it works OK
Comment 1 Martin Koller 2023-04-29 14:06:15 UTC
Can not reproduce (Version 21.12.3) and have never experienced this issue.
Comment 2 hugo_musso_gualandi 2024-01-25 14:05:41 UTC
I have encountered this bug too. Fedora 39, with Kolourpaint version 23.08.4

The bug was fickle; it only happened to one of my image files, for some selections. I don't know how to reproduce it more generally.
Copying from imageA.png worked fine.
Copying from imageB.png worked for small selections but failed for larger selections such as ctrl+A.
The workaround I found was to copy from the file browser to kolourpaint, instead of kolourpaint to kolourpaint via selection. Open the directory that contains imageB, copy the whole file without opening it into kolourpaint first, then paste that directly into the destination.
Comment 3 Martin Koller 2024-01-26 20:42:12 UTC
I need some way to reproduce it. Can someone attach an image with which it's reproducible?
Does it have to do with  the size of the selection?
Comment 4 hugo_musso_gualandi 2024-01-26 22:05:17 UTC
Created attachment 165259 [details]
Image that works fine
Comment 5 hugo_musso_gualandi 2024-01-26 22:05:37 UTC
Created attachment 165260 [details]
Buggy image
Comment 6 hugo_musso_gualandi 2024-01-26 22:09:09 UTC
Hi Martin, thanks for taking the time to look into this.
I attached the images I described in the previous comment.
ImageA works fine.  ImageB is the buggy one, if selecting the whole thing with ctrl+A.
Comment 7 hugo_musso_gualandi 2024-01-26 22:28:15 UTC
I tested various selection sizes. It's finicky and depended on both the size *and* the position of the selection.
I also have to correct myself about ImageA -- the bug also appears there if I make the same selections that I made on ImageB.

For this test, I first resized ImageB so the width of the file is 256. This makes it much easier to select precise sizes with the mouse.
- If I start the selection at (0,0), then a 256x256 selection works but 256x257 doesn't work.
- However, if I start the selection further down at (0,72), then 256x257 seems to work.