Don't draw LIB_PIN and SCH_LINE on OP layers when OP is empty.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15041
This commit is contained in:
Alex Shvartzkop 2023-06-24 16:01:31 +03:00
parent 4764606a9d
commit bce643feae
1 changed files with 6 additions and 3 deletions

View File

@ -1404,10 +1404,11 @@ void SCH_PAINTER::draw( const LIB_PIN* aPin, int aLayer, bool aDimmed )
knockoutText( aPin->GetOperatingPoint(), mid, attrs );
}
return;
}
if( drawingOP )
return;
VECTOR2D pc;
m_gal->SetIsStroke( true );
@ -1902,9 +1903,11 @@ void SCH_PAINTER::draw( const SCH_LINE* aLine, int aLayer )
attrs.m_Color = m_schSettings.GetLayerColor( LAYER_OP_VOLTAGES );
knockoutText( aLine->GetOperatingPoint(), pos, attrs );
return;
}
if( drawingOP )
return;
m_gal->SetIsStroke( true );
m_gal->SetStrokeColor( color );
m_gal->SetLineWidth( width );