From 9aaea050b9cd2795cff453fec38adf02f82d320c Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 7 Aug 2017 10:02:07 +0200 Subject: [PATCH] Do not stop dragging after a rotation command Fixes: lp:1708876 * https://bugs.launchpad.net/kicad/+bug/1708876 --- pcbnew/tools/edit_tool.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index b430a49296..68f7933540 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -621,7 +621,7 @@ int EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent ) if( !m_dragging ) m_commit->Push( _( "Rotate" ) ); - if( selection.IsHover() ) + if( selection.IsHover() && !m_dragging ) m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true ); m_toolMgr->RunAction( PCB_ACTIONS::selectionModified, true ); @@ -728,7 +728,7 @@ int EDIT_TOOL::Mirror( const TOOL_EVENT& aEvent ) if( !m_dragging ) m_commit->Push( _( "Mirror" ) ); - if( selection.IsHover() ) + if( selection.IsHover() && !m_dragging ) m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true ); m_toolMgr->RunAction( PCB_ACTIONS::selectionModified, true ); @@ -761,7 +761,7 @@ int EDIT_TOOL::Flip( const TOOL_EVENT& aEvent ) if( !m_dragging ) m_commit->Push( _( "Flip" ) ); - if( selection.IsHover() ) + if( selection.IsHover() && !m_dragging ) m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true ); m_toolMgr->RunAction( PCB_ACTIONS::selectionModified, true );