diff --git a/pcbnew/tools/pcb_tool_base.cpp b/pcbnew/tools/pcb_tool_base.cpp index d71e61cceb..a7a056245d 100644 --- a/pcbnew/tools/pcb_tool_base.cpp +++ b/pcbnew/tools/pcb_tool_base.cpp @@ -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; }