From 112c10fbd9315572fc9ea5cc92c259b04b339631 Mon Sep 17 00:00:00 2001 From: Aurabindo J Date: Fri, 10 Feb 2017 10:04:38 +0100 Subject: [PATCH] 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 Fixes: lp:1663488 * https://bugs.launchpad.net/kicad/+bug/1663488 --- pcbnew/tools/edit_tool.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index f9fbad3cb5..dbbbd10048 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/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 );