Do not stop dragging after a rotation command

Fixes: lp:1708876
* https://bugs.launchpad.net/kicad/+bug/1708876
This commit is contained in:
Maciej Suminski 2017-08-07 10:02:07 +02:00
parent ef22c2589d
commit 9aaea050b9
1 changed files with 3 additions and 3 deletions

View File

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