Pinta icon indicating copy to clipboard operation
Pinta copied to clipboard

Ellipse Select's/Lasso Select's Paste Unusable

Open NeilCresswell opened this issue 8 months ago • 3 comments

Description When pasting any selected area that isn't a rectangle, part of the underlying image (not the shape being pasted) is deleted. This never used to occur until the most recent releases.

To Reproduce Use the "Ellipse Select" tool to highlight an oval area in an image. Copy (ctrl-c) then paste (ctr-v) into the same layer. As expected, the copied oval is placed at the top left corner and can then be dragged wherever desirable on the image. As soon as you do something else so the pasted oval is "Deselect"ed then the error occurs: The oval is left pasted as desired, but the rectangular bounding box for the oval deletes everything else from the underlying main image so that you effectively see a transparent box with just a pasted oval in it. The issue isn't temporary. If you save the image, the transparency is saved.

Ditto for when pasting a Lasso Select, where again, as soon as the paste is deselected, the remainder of the bounding box for the pasted area that is not part of the Lasso shape is deleted in the underlying image.

Additional Info There are no issues with the "Rectangle Select" tool. Likely this is because there is no remaining area. i.e. The bounding box is the same as the pasted area.

Version Pinta v3.0 from dl.flathub.org, tested on Fedora Workstation 41.

NeilCresswell avatar Apr 24 '25 11:04 NeilCresswell

Confirmed, this doesn't happen in Pinta 2.1

cameronwhite avatar Apr 25 '25 02:04 cameronwhite

This changed with #840, which was making some changes with good intentions .. It works as expected if you're just using the Move Selected Pixels tool rather than copying, because the changes are clipped to the selection path (an ellipse). But with copy/paste the selection becomes the bounding rectangle so now the transparent pixels are in play

cameronwhite avatar Apr 25 '25 02:04 cameronwhite

Thank you for adding this to the 3.1 list!

For me that's a showstopper for how I personally use Pinta, so I've temporarily downgraded to the last version before 3.0 and disabled updates for Pinta, and thought it might be useful to share how I did so in case anyone else is in the same boat. The following works well for me on Fedora:

  1. Install latest version from dl.flathub.org via the Gnome Software app.
  2. flatpak remote-info --log flathub com.github.PintaProject.Pinta
  3. Note the commit # you want then from the log. The last version of Pinta before 3.0: eb978f6ae82fc380b1c6b3a1ed7253a9f8f75115798274c4a71168ecc335ae9c
  4. sudo flatpak update --commit=eb978f6ae82fc380b1c6b3a1ed7253a9f8f75115798274c4a71168ecc335ae9c com.github.PintaProject.Pinta
  5. sudo flatpak mask com.github.PintaProject.Pinta

When you're ready to resume updates later, say when 3.1 comes out: sudo flatpak mask --remove com.github.PintaProject.Pinta

NeilCresswell avatar Apr 26 '25 23:04 NeilCresswell