From 25538205c98d20dc6caf1bfbe0080d95f4a267ce Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Wed, 19 Mar 2014 15:33:13 +0100 Subject: [PATCH] Fixed a few ratsnest glitches in GAL. --- pcbnew/tools/edit_tool.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index 53a72f25e3..6965042775 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -270,6 +270,8 @@ int EDIT_TOOL::Rotate( TOOL_EVENT& aEvent ) item->ViewUpdate( KIGFX::VIEW_ITEM::GEOMETRY ); } + updateRatsnest( m_dragging ); + if( m_dragging ) selection.group->ViewUpdate( KIGFX::VIEW_ITEM::GEOMETRY ); else @@ -279,8 +281,6 @@ int EDIT_TOOL::Rotate( TOOL_EVENT& aEvent ) m_toolMgr->RunAction( COMMON_ACTIONS::selectionClear ); m_toolMgr->RunAction( COMMON_ACTIONS::pointEditorUpdate ); - - updateRatsnest( true ); setTransitions(); return 0; @@ -316,6 +316,8 @@ int EDIT_TOOL::Flip( TOOL_EVENT& aEvent ) item->ViewUpdate( KIGFX::VIEW_ITEM::LAYERS ); } + updateRatsnest( m_dragging ); + if( m_dragging ) selection.group->ViewUpdate( KIGFX::VIEW_ITEM::GEOMETRY ); else @@ -325,8 +327,6 @@ int EDIT_TOOL::Flip( TOOL_EVENT& aEvent ) m_toolMgr->RunAction( COMMON_ACTIONS::selectionClear ); m_toolMgr->RunAction( COMMON_ACTIONS::pointEditorUpdate ); - - updateRatsnest( true ); setTransitions(); return 0; @@ -365,7 +365,6 @@ int EDIT_TOOL::Remove( TOOL_EVENT& aEvent ) if( !( board->m_Status_Pcb & NET_CODES_OK ) ) board->BuildListOfNets(); - board->GetRatsnest()->Recalculate(); // TODO is it necessary? setTransitions(); return 0;