Browse Source

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
pull/3/merge
Aurabindo J 9 years ago
committed by Maciej Suminski
parent
commit
112c10fbd9
  1. 6
      pcbnew/tools/edit_tool.cpp

6
pcbnew/tools/edit_tool.cpp

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

Loading…
Cancel
Save