Paste to new image result in zoom 0% image size

Bug #1959673 reported by grofaty
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
Fix Released
Undecided
Unassigned

Bug Description

Pinta 2.0.2 on Windows 10.

1. Open Pinta.
2. Rectangle Select and mark some small area on canvas.
3. CTRL+C to copy the image into clipboard.
4. Close Pinta with "Close without Saving" button.
5. Open Pinta.
6. Close default opened image on "x" from image tab with "Close without Saving" button.
7. CTRL+ALT+V to paste into new tab and PROBLEM: Image is zoomed to 0%.

This kind of "zoom to 0%" happens all of the times (for quite some time) to me in all kind of CTRL+ALV+V situations, but this is so far the only reproducible scenario I have come with.

Revision history for this message
grofaty (grofaty) wrote :
Revision history for this message
grofaty (grofaty) wrote :

I retested on Pinta/today's master/github and problem is the same.

Revision history for this message
Cameron White (cameronwhite91) wrote :

Confirmed on Windows, but I haven't been able to reproduce it on macOS

Changed in pinta:
status: New → Confirmed
Changed in pinta:
milestone: none → 2.1
Revision history for this message
grofaty (grofaty) wrote :

Now I also tested with latest Pinta 2.1-development from Github on Ubuntu 22.10 and I can confirm the problem.

ADDITIONAL (tested on Ubuntu 22.10):
After 1-7 steps from bug report.
8. Click on "x" on tab to close the image if asked then do not save the image.
9. CTRL+ALT+V again and this time image is pasted with correct size (as it should first time).
10. Repeat steps 8 and 9 and this time problem reappears.
11. Repeat steps 8 and 9 and this time paste works again.

If repeated, then first time it does not pastes correctly and second time it does.

Revision history for this message
Cameron White (cameronwhite91) wrote :

Thanks, I'm able to reproduce it fairly reliably with those steps

Revision history for this message
Cameron White (cameronwhite91) wrote :

I've made an attempted fix (https://github.com/PintaProject/Pinta/actions/runs/3759973148) which needs some testing on various platforms to see if it actually fixes the issue :)

It seems to work on macOS and Windows in my testing. The one minor issue it introduces is when pasting or creating a large image that needs to be zoomed out to fit in the window - there's now a small flicker of the image at 100% zoom before it's redrawn zoomed out

Revision history for this message
grofaty (grofaty) wrote :

I downloaded Pinta from above URL and tested on Ubuntu 22.10. All tests I did it worked fine, no issue anymore.

I also tested on bigger monitor with 2560 x 1440 resolution and created print screen and then <CTRL>+<ALT>+V and I also notice this flickering like maximizing the image and then resize to little bit smaller canvas.

Now we have a decision, should we merge the code or not. In my humble opinion issue in this bug report is a defect of pasting not working correctly and flickering is just an visual imperfection not a defect in the sense of Pinta not working fine.

I suggest to merge the code to the master branch.

Revision history for this message
Cameron White (cameronwhite91) wrote :
Changed in pinta:
status: Confirmed → Fix Committed
grofaty (grofaty)
Changed in pinta:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.