Skip to content

Fixed index handling in DocumentLayers commands - #2379

Merged
cameronwhite merged 1 commit into
PintaProject:masterfrom
Lehonti:fix/documents_layers
Nov 8, 2026
Merged

cameronwhite merged 1 commit into
PintaProject:masterfrom
Lehonti:fix/documents_layers

Conversation

@Lehonti

@Lehonti Lehonti commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

DeleteLayer was unconditionally decrementing CurrentUserLayerIndex even when deleting layer above, which shifted the selected layer down by one.

I am not sure if an issue exists for the bug caused by this.

@cameronwhite

Copy link
Copy Markdown
Member

I don't think I've seen any bugs related to this, but the changes look reasonable 👍

@cameronwhite
cameronwhite merged commit b7f527a into PintaProject:master Nov 8, 2026
8 of 9 checks passed
@Lehonti
Lehonti deleted the fix/documents_layers branch November 9, 2026 00:36
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.

2 participants