From 5b335f1c4e413392090ccc0bf031e9312e675c60 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Thu, 3 Aug 2023 10:04:36 -0400 Subject: [PATCH] Schematic: junctions need to be added to the view before cleanup Otherwise they aren't considered for breaking segments. Fixes: https://gitlab.com/kicad/code/kicad/-/issues/15146 --- eeschema/tools/sch_drawing_tools.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/tools/sch_drawing_tools.cpp b/eeschema/tools/sch_drawing_tools.cpp index ace916a038..67d0c2bb91 100644 --- a/eeschema/tools/sch_drawing_tools.cpp +++ b/eeschema/tools/sch_drawing_tools.cpp @@ -847,9 +847,10 @@ int SCH_DRAWING_TOOLS::SingleClickPlace( const TOOL_EVENT& aEvent ) const_cast( newItem->m_Uuid ) = KIID(); newItem->SetPosition( cursorPos ); newItem->SetFlags( IS_NEW ); + m_frame->AddToScreen( newItem, screen ); SCH_COMMIT commit( m_toolMgr ); - commit.Add( newItem, screen ); + commit.Added( newItem, screen ); m_frame->SchematicCleanUp( &commit );