Fix three spots it always failed to check if the border was enabled
This commit is contained in:
parent
2dcb7caacf
commit
2e58f4ea60
|
@ -212,7 +212,9 @@ void BOARD_ADAPTER::addFootprintShapes( const FOOTPRINT* aFootprint, CONTAINER_2
|
|||
|
||||
if( textbox->GetLayer() == aLayerId )
|
||||
{
|
||||
if( textbox->IsBorderEnabled() )
|
||||
addShape( textbox, aContainer, aFootprint );
|
||||
|
||||
addText( textbox, aContainer, aFootprint );
|
||||
}
|
||||
|
||||
|
|
|
@ -3053,6 +3053,7 @@ void FOOTPRINT::TransformFPShapesToPolySet( SHAPE_POLY_SET& aBuffer, PCB_LAYER_I
|
|||
if( aLayer != UNDEFINED_LAYER && textbox->GetLayer() == aLayer && textbox->IsVisible() )
|
||||
{
|
||||
// border
|
||||
if( textbox->IsBorderEnabled() )
|
||||
textbox->PCB_SHAPE::TransformShapeToPolygon( aBuffer, aLayer, 0, aError, aErrorLoc );
|
||||
// text
|
||||
textbox->TransformTextToPolySet( aBuffer, 0, aError, aErrorLoc );
|
||||
|
|
Loading…
Reference in New Issue