Cleanup busses

At some point the buses were no longer being addressed in
SchematicCleanup().  This re-adds bus segments to the checklist for
segments to merge/clean
This commit is contained in:
Seth Hillbrand 2020-01-22 05:53:40 -08:00
parent 0d017e262c
commit ef00fa6008
1 changed files with 3 additions and 2 deletions

View File

@ -158,7 +158,7 @@ bool SCH_EDIT_FRAME::SchematicCleanUp( SCH_SCREEN* aScreen )
for( auto item : aScreen->Items().OfType( SCH_LINE_T ) )
{
if( item->GetLayer() == LAYER_WIRE )
if( item->GetLayer() == LAYER_WIRE || item->GetLayer() == LAYER_BUS )
lines.push_back( static_cast<SCH_LINE*>( item ) );
}
@ -221,7 +221,8 @@ bool SCH_EDIT_FRAME::SchematicCleanUp( SCH_SCREEN* aScreen )
if( !secondLine->IsParallel( firstLine )
|| secondLine->GetLineStyle() != firstLine->GetLineStyle()
|| secondLine->GetLineColor() != firstLine->GetLineColor()
|| secondLine->GetLineSize() != firstLine->GetLineSize() )
|| secondLine->GetLineSize() != firstLine->GetLineSize()
|| secondLine->GetLayer() != firstLine->GetLayer() )
continue;
// Remove identical lines