steffest / DPaint-js

Webbased image editor, modeled after the legendary Deluxe Paint with a focus on retro Amiga file formats: read and write Amiga icon files and IFF ILBM images
https://www.stef.be/dpaint/
MIT License
486 stars 28 forks source link

BUG: Disappearing layers #20

Closed osraunio closed 8 months ago

osraunio commented 9 months ago

Sometimes when I press ctrl+z, maybe after having some hidden layer active, then changing layer visibility, the result is that one layer is duplicated over another layer, destroying the old content completely.

steffest commented 9 months ago

Ouch, thats sounds like a nasty one... Sorry about that.

I'll look into.

steffest commented 9 months ago

Confirmed it's a bug. Steps to reproduce:

Layer 1 is now (incorrectly) copied to layer 2, layer 1 is empty. It seems the undo buffer is not correctly mapped to the active layer.