Don't discard temporary item being placed if placement is rejected
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13697
This commit is contained in:
parent
822d7af4b7
commit
b888714ed5
|
@ -188,6 +188,7 @@ void PCB_TOOL_BASE::doInteractiveItemPlacement( const TOOL_EVENT& aTool,
|
|||
if( !aPlacer->PlaceItem( newBoardItem, commit ) )
|
||||
{
|
||||
newBoardItem->SetFlags( oldFlags );
|
||||
newItem.reset( newBoardItem );
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue