Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix canvas not updating when deleting layers or redoing/undoing layer changes #981

Merged
merged 2 commits into from
Sep 18, 2024

Conversation

f-i-l-i-p
Copy link
Contributor

Fixes issue: #979

Added a call to Workspace.Invalidate() in DocumentLayers.DeleteLayer() and DocumentLayers.Insert() to always update the canvas when a layer is deleted or inserted.

Another alternative would be to invalidate the workspace from the LayerAction that deletes the layer, and from Undo()/Redo() in DeleteLayerHistoryItem if that is preferred?

@cameronwhite
Copy link
Member

Thanks! I think this is okay since other methods like DocumentLayers.MoveLayerUp() are doing the same

@cameronwhite cameronwhite linked an issue Sep 18, 2024 that may be closed by this pull request
@cameronwhite cameronwhite merged commit 1bc1ff0 into PintaProject:master Sep 18, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Canvas is not updated when removing layers
2 participants