mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-01 10:21:04 +00:00
Fix crash when copying & pasting removed layers
If we Ctrl+C a set of layers, then we remove some of those layers, and Ctrl+V in other document, the program will crash.
This commit is contained in:
parent
f950e2e787
commit
0c8b5c6a4f
@ -1092,6 +1092,7 @@ void Timeline::onAddLayer(doc::DocumentEvent& ev)
|
||||
|
||||
regenerateLayers();
|
||||
showCurrentCel();
|
||||
clearClipboardRange();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
@ -1119,6 +1120,7 @@ void Timeline::onAfterRemoveLayer(doc::DocumentEvent& ev)
|
||||
|
||||
regenerateLayers();
|
||||
showCurrentCel();
|
||||
clearClipboardRange();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user