Pcbnew: Update Ratsnest immediately after rotation/flip/mirror

Provide a visual feedback to the user how each rotation
will affect the routing by immediately reflecting the
change in ratsnest orientation.

Signed-off-by: Aurabindo J <mail@aurabindo.in>

Fixes: lp:1663488
* https://bugs.launchpad.net/kicad/+bug/1663488
This commit is contained in:
Aurabindo J 2017-02-10 10:04:38 +01:00 committed by Maciej Suminski
parent a54830897b
commit 112c10fbd9
1 changed files with 6 additions and 0 deletions

View File

@ -412,6 +412,8 @@ int EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent )
if( !m_dragging )
m_commit->Push( _( "Rotate" ) );
else
updateRatsnest( true );
if( unselect )
m_toolMgr->RunAction( COMMON_ACTIONS::selectionClear, true );
@ -521,6 +523,8 @@ int EDIT_TOOL::Mirror( const TOOL_EVENT& aEvent )
if( !m_dragging )
m_commit->Push( _( "Mirror" ) );
else
updateRatsnest( true );
if( unselect )
m_toolMgr->RunAction( COMMON_ACTIONS::selectionClear, true );
@ -553,6 +557,8 @@ int EDIT_TOOL::Flip( const TOOL_EVENT& aEvent )
if( !m_dragging )
m_commit->Push( _( "Flip" ) );
else
updateRatsnest( true );
if( unselect )
m_toolMgr->RunAction( COMMON_ACTIONS::selectionClear, true );