7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-14 20:09:35 +00:00

PNS: Ensure Pop-up "Track violates DRC" is erased at end of drag command.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19234
This commit is contained in:
jean-pierre charras 2024-12-03 10:56:27 +01:00
parent ecdc7ee08f
commit 1942f2f227

View File

@ -2109,7 +2109,7 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent )
return 0;
// selection gets cleared in the next action, we need a copy of the selected items.
std::deque<EDA_ITEM*> selectedItems = selection.GetItems();
std::deque<EDA_ITEM*> selectedItems = selection.GetItems();
BOARD_ITEM* item = static_cast<BOARD_ITEM*>( selection.Front() );
@ -2278,8 +2278,6 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent )
int dragMode = aEvent.Parameter<int> ();
bool dragStarted = m_router->StartDragging( p, itemsToDrag, dragMode );
if( !dragStarted )
@ -2529,6 +2527,8 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent )
frame()->UndoRedoBlock( false );
frame()->PopTool( aEvent );
highlightNets( false );
view()->ClearPreview();
view()->ShowPreview( false );
return 0;
}