Break wire segments on bus-wire entry endpoints

Fixes https://gitlab.com/kicad/code/kicad/-/issues/6173
This commit is contained in:
Jon Evans 2020-12-20 10:22:59 -05:00
parent 7bc42f387a
commit 0830f87ef4
1 changed files with 4 additions and 0 deletions

View File

@ -461,6 +461,10 @@ bool SCH_SCREEN::IsJunctionNeeded( const wxPoint& aPosition, bool aNew )
if( pin_count && pin_count + end_count[WIRES] > 2 )
return true;
// If wire segments overlap an entry
if( entry_count && entry_count + end_count[WIRES] > 2 )
return true;
// If there is at least one segment that ends on a non-parallel line or
// junction of two other lines
if( has_nonparallel[WIRES] && end_count[WIRES] > 2 )