bgrabitmap / lazpaint

🎨 Cross-platform image editor with raster and vector layers similar to Paint.Net written in Lazarus (Free Pascal)
https://lazpaint.github.io/
GNU General Public License v3.0
406 stars 56 forks source link

After using the "Past as new image" function, the "Undo" function does not work #377

Closed Gos1k closed 3 years ago

Gos1k commented 3 years ago

1) Summary: After using the "Past as new image" function, the "Undo" function does not work

2) Description: After using the "Past as new image" function, the "Undo" function does not work, while after using other insert functions, "Undo" works correctly

3) Environment:

Windows 10 Pro x64, Build 19043.1320, Version 21H1

LazPaint 7.1.6, 64-bit, portable

4) Steps to reproduce

Press Edit Press Past as new image Press undo

5) Expected behavior The copied image fragment should be pasted, then the result of the paste should be canceled

6) Actual behavior the undo function becomes unavailable

7) Attachment: image

circular17 commented 3 years ago

Indeed. "Paste as new" amounts to creating a new image. As only one image is edited at a time, the previous one is discarded (as if you would do "New image"). A prompt asks for saving the image beforehand.

This may be addressed in the future with multiple documents interface.

circular17 commented 3 years ago

Multiple document interface: https://github.com/bgrabitmap/lazpaint/issues/101