From 0f2d0cbcd0564976c8a445ebc9a9fbbc28aac9e4 Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 17 Aug 2016 17:05:46 -0300 Subject: [PATCH] Fix invalid selection after removing frames (fix #1235) --- src/app/ui/timeline.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/ui/timeline.cpp b/src/app/ui/timeline.cpp index a9ef00430..9cf554b6f 100644 --- a/src/app/ui/timeline.cpp +++ b/src/app/ui/timeline.cpp @@ -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();