mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 09:56:59 +00:00
Fix invalid selection after removing frames (fix #1235)
This commit is contained in:
parent
9c97f6c329
commit
0f2d0cbcd0
@ -1137,6 +1137,10 @@ void Timeline::onRemoveFrame(doc::DocumentEvent& ev)
|
||||
setFrame(sprite()->lastFrame(), false);
|
||||
}
|
||||
|
||||
// Disable the selected range when we remove frames
|
||||
if (m_range.enabled())
|
||||
m_range.disableRange();
|
||||
|
||||
showCurrentCel();
|
||||
clearClipboardRange();
|
||||
invalidate();
|
||||
|
Loading…
Reference in New Issue
Block a user