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->GetLayer() == aLayerId )
|
||||||
{
|
{
|
||||||
addShape( textbox, aContainer, aFootprint );
|
if( textbox->IsBorderEnabled() )
|
||||||
|
addShape( textbox, aContainer, aFootprint );
|
||||||
|
|
||||||
addText( textbox, aContainer, aFootprint );
|
addText( textbox, aContainer, aFootprint );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -607,7 +607,7 @@ void BOARD_ADAPTER::createLayers( REPORTER* aStatusReporter )
|
||||||
|
|
||||||
case PCB_TEXTBOX_T:
|
case PCB_TEXTBOX_T:
|
||||||
addText( static_cast<PCB_TEXTBOX*>( item ), layerContainer, item );
|
addText( static_cast<PCB_TEXTBOX*>( item ), layerContainer, item );
|
||||||
addShape( static_cast<PCB_TEXTBOX*>( item ), layerContainer, item );
|
addShape( static_cast<PCB_TEXTBOX*>( item ), layerContainer, item );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PCB_DIM_ALIGNED_T:
|
case PCB_DIM_ALIGNED_T:
|
||||||
|
|
|
@ -3053,7 +3053,8 @@ void FOOTPRINT::TransformFPShapesToPolySet( SHAPE_POLY_SET& aBuffer, PCB_LAYER_I
|
||||||
if( aLayer != UNDEFINED_LAYER && textbox->GetLayer() == aLayer && textbox->IsVisible() )
|
if( aLayer != UNDEFINED_LAYER && textbox->GetLayer() == aLayer && textbox->IsVisible() )
|
||||||
{
|
{
|
||||||
// border
|
// border
|
||||||
textbox->PCB_SHAPE::TransformShapeToPolygon( aBuffer, aLayer, 0, aError, aErrorLoc );
|
if( textbox->IsBorderEnabled() )
|
||||||
|
textbox->PCB_SHAPE::TransformShapeToPolygon( aBuffer, aLayer, 0, aError, aErrorLoc );
|
||||||
// text
|
// text
|
||||||
textbox->TransformTextToPolySet( aBuffer, 0, aError, aErrorLoc );
|
textbox->TransformTextToPolySet( aBuffer, 0, aError, aErrorLoc );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue