Fixed a few ratsnest glitches in GAL.
This commit is contained in:
parent
bf418eb1ee
commit
093e311a8d
|
@ -270,6 +270,8 @@ int EDIT_TOOL::Rotate( TOOL_EVENT& aEvent )
|
||||||
item->ViewUpdate( KIGFX::VIEW_ITEM::GEOMETRY );
|
item->ViewUpdate( KIGFX::VIEW_ITEM::GEOMETRY );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateRatsnest( m_dragging );
|
||||||
|
|
||||||
if( m_dragging )
|
if( m_dragging )
|
||||||
selection.group->ViewUpdate( KIGFX::VIEW_ITEM::GEOMETRY );
|
selection.group->ViewUpdate( KIGFX::VIEW_ITEM::GEOMETRY );
|
||||||
else
|
else
|
||||||
|
@ -279,8 +281,6 @@ int EDIT_TOOL::Rotate( TOOL_EVENT& aEvent )
|
||||||
m_toolMgr->RunAction( COMMON_ACTIONS::selectionClear );
|
m_toolMgr->RunAction( COMMON_ACTIONS::selectionClear );
|
||||||
|
|
||||||
m_toolMgr->RunAction( COMMON_ACTIONS::pointEditorUpdate );
|
m_toolMgr->RunAction( COMMON_ACTIONS::pointEditorUpdate );
|
||||||
|
|
||||||
updateRatsnest( true );
|
|
||||||
setTransitions();
|
setTransitions();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -316,6 +316,8 @@ int EDIT_TOOL::Flip( TOOL_EVENT& aEvent )
|
||||||
item->ViewUpdate( KIGFX::VIEW_ITEM::LAYERS );
|
item->ViewUpdate( KIGFX::VIEW_ITEM::LAYERS );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateRatsnest( m_dragging );
|
||||||
|
|
||||||
if( m_dragging )
|
if( m_dragging )
|
||||||
selection.group->ViewUpdate( KIGFX::VIEW_ITEM::GEOMETRY );
|
selection.group->ViewUpdate( KIGFX::VIEW_ITEM::GEOMETRY );
|
||||||
else
|
else
|
||||||
|
@ -325,8 +327,6 @@ int EDIT_TOOL::Flip( TOOL_EVENT& aEvent )
|
||||||
m_toolMgr->RunAction( COMMON_ACTIONS::selectionClear );
|
m_toolMgr->RunAction( COMMON_ACTIONS::selectionClear );
|
||||||
|
|
||||||
m_toolMgr->RunAction( COMMON_ACTIONS::pointEditorUpdate );
|
m_toolMgr->RunAction( COMMON_ACTIONS::pointEditorUpdate );
|
||||||
|
|
||||||
updateRatsnest( true );
|
|
||||||
setTransitions();
|
setTransitions();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -365,7 +365,6 @@ int EDIT_TOOL::Remove( TOOL_EVENT& aEvent )
|
||||||
if( !( board->m_Status_Pcb & NET_CODES_OK ) )
|
if( !( board->m_Status_Pcb & NET_CODES_OK ) )
|
||||||
board->BuildListOfNets();
|
board->BuildListOfNets();
|
||||||
|
|
||||||
board->GetRatsnest()->Recalculate(); // TODO is it necessary?
|
|
||||||
setTransitions();
|
setTransitions();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue