diff --git a/eeschema/sch_screen.cpp b/eeschema/sch_screen.cpp index e9ce910b3e..309b64e9f5 100644 --- a/eeschema/sch_screen.cpp +++ b/eeschema/sch_screen.cpp @@ -445,6 +445,9 @@ bool SCH_SCREEN::IsJunctionNeeded( const wxPoint& aPosition, bool aNew ) const } else if( line->HitTest( aPosition, -1 ) ) { + if( aNew ) + breakLines[ layer ] = true; + // Defer any line midpoints until we know whether or not we're breaking them midPointLines[ layer ].push_back( line ); } diff --git a/eeschema/tools/sch_drawing_tools.cpp b/eeschema/tools/sch_drawing_tools.cpp index b99f592cc1..f1a7a49bdb 100644 --- a/eeschema/tools/sch_drawing_tools.cpp +++ b/eeschema/tools/sch_drawing_tools.cpp @@ -725,7 +725,7 @@ int SCH_DRAWING_TOOLS::SingleClickPlace( const TOOL_EVENT& aEvent ) { if( type == SCH_JUNCTION_T ) { - if( !m_frame->GetScreen()->IsJunctionNeeded( cursorPos ) ) + if( !m_frame->GetScreen()->IsJunctionNeeded( cursorPos, true ) ) { m_frame->ShowInfoBarError( _( "Junction location contains no joinable " "wires and/or pins." ) );