mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-09 18:44:46 +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();
|
regenerateLayers();
|
||||||
showCurrentCel();
|
showCurrentCel();
|
||||||
|
clearClipboardRange();
|
||||||
invalidate();
|
invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1119,6 +1120,7 @@ void Timeline::onAfterRemoveLayer(doc::DocumentEvent& ev)
|
|||||||
|
|
||||||
regenerateLayers();
|
regenerateLayers();
|
||||||
showCurrentCel();
|
showCurrentCel();
|
||||||
|
clearClipboardRange();
|
||||||
invalidate();
|
invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user