diff --git a/src/app/ui/editor/standby_state.cpp b/src/app/ui/editor/standby_state.cpp index eedbe5568..1e45bc101 100644 --- a/src/app/ui/editor/standby_state.cpp +++ b/src/app/ui/editor/standby_state.cpp @@ -396,7 +396,7 @@ bool StandbyState::onDoubleClick(Editor* editor, MouseMessage* msg) if (ink->isSelection() && Preferences::instance().selection.doubleclickSelectTile()) { // Drop pixels if we are in moving pixels state - if (MovingPixelsState* movingPixels = dynamic_cast(editor->getState().get())) + if (dynamic_cast(editor->getState().get())) editor->backToPreviousState(); // Start a tool-loop selecting tiles.