Skip to content

Commit

Permalink
Fix invalid selection after removing frames (fix #1235)
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Aug 17, 2016
1 parent 9c97f6c commit 0f2d0cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/ui/timeline.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 0f2d0cb

Please sign in to comment.