Fix invalid selection after removing frames (fix #1235)

This commit is contained in:
David Capello 2016-08-17 17:05:46 -03:00
parent 9c97f6c329
commit 0f2d0cbcd0

View File

@ -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();