Skip to content

Fix potential errors from the swap layers history item#2214

Merged
cameronwhite merged 1 commit into
masterfrom
fix/swap-layers
Jul 12, 2026
Merged

Fix potential errors from the swap layers history item#2214
cameronwhite merged 1 commit into
masterfrom
fix/swap-layers

Conversation

@cameronwhite

Copy link
Copy Markdown
Member

The previous implementation removed both layers before inserting them at the new locations. If there were only two layers this left the document temporarily in an invalid state, which could produce errors in event handlers for the LayerRemoved events

Fixes: #2139

The previous implementation removed both layers before inserting them at the new locations. If there were only two layers this left the document temporarily in an invalid state, which could produce errors in event handlers for the LayerRemoved events

Fixes: #2139
@cameronwhite
cameronwhite merged commit 98ed662 into master Jul 12, 2026
11 checks passed
@cameronwhite
cameronwhite deleted the fix/swap-layers branch July 12, 2026 02:20
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.

System.ArgumentOutOfRangeException when undoing text on a semi-transparent layer and when attempting subsequent edits, crash

1 participant