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:
parent
0d017e262c
commit
ef00fa6008
|
@ -158,7 +158,7 @@ bool SCH_EDIT_FRAME::SchematicCleanUp( SCH_SCREEN* aScreen )
|
||||||
|
|
||||||
for( auto item : aScreen->Items().OfType( SCH_LINE_T ) )
|
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 ) );
|
lines.push_back( static_cast<SCH_LINE*>( item ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -221,7 +221,8 @@ bool SCH_EDIT_FRAME::SchematicCleanUp( SCH_SCREEN* aScreen )
|
||||||
if( !secondLine->IsParallel( firstLine )
|
if( !secondLine->IsParallel( firstLine )
|
||||||
|| secondLine->GetLineStyle() != firstLine->GetLineStyle()
|
|| secondLine->GetLineStyle() != firstLine->GetLineStyle()
|
||||||
|| secondLine->GetLineColor() != firstLine->GetLineColor()
|
|| secondLine->GetLineColor() != firstLine->GetLineColor()
|
||||||
|| secondLine->GetLineSize() != firstLine->GetLineSize() )
|
|| secondLine->GetLineSize() != firstLine->GetLineSize()
|
||||||
|
|| secondLine->GetLayer() != firstLine->GetLayer() )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Remove identical lines
|
// Remove identical lines
|
||||||
|
|
Loading…
Reference in New Issue