From 33bad83ea7633b407d792a91c3fc081a3ab42c23 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 3 Apr 2014 10:24:27 +0200 Subject: [PATCH] Fixed missing transitions for EDIT_TOOLs. --- pcbnew/tools/edit_tool.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index 445e7abdd7..1c84cc10c5 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -266,7 +266,11 @@ int EDIT_TOOL::Rotate( TOOL_EVENT& aEvent ) bool unselect = selection.Empty(); if( !makeSelection( selection ) ) + { + setTransitions(); + return 0; + } wxPoint rotatePoint = getModificationPoint( selection ); @@ -312,7 +316,11 @@ int EDIT_TOOL::Flip( TOOL_EVENT& aEvent ) bool unselect = selection.Empty(); if( !makeSelection( selection ) ) + { + setTransitions(); + return 0; + } wxPoint flipPoint = getModificationPoint( selection ); @@ -354,7 +362,11 @@ int EDIT_TOOL::Remove( TOOL_EVENT& aEvent ) const SELECTION_TOOL::SELECTION& selection = m_selectionTool->GetSelection(); if( !makeSelection( selection ) ) + { + setTransitions(); + return 0; + } // Get a copy of the selected items set PICKED_ITEMS_LIST selectedItems = selection.items;