Browse Source

Do not stop dragging after a rotation command

Fixes: lp:1708876
* https://bugs.launchpad.net/kicad/+bug/1708876
pull/7/merge
Maciej Suminski 8 years ago
parent
commit
9aaea050b9
  1. 6
      pcbnew/tools/edit_tool.cpp

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

Loading…
Cancel
Save