Browse Source

Repair new junction logic for crossing wires.

Fixes https://gitlab.com/kicad/code/kicad/issues/9484
6.0.7
Jeff Young 4 years ago
parent
commit
1fa9ad227a
  1. 3
      eeschema/sch_screen.cpp
  2. 2
      eeschema/tools/sch_drawing_tools.cpp

3
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 );
}

2
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." ) );

Loading…
Cancel
Save