diff --git a/3d-viewer/3d_canvas/create_3Dgraphic_brd_items.cpp b/3d-viewer/3d_canvas/create_3Dgraphic_brd_items.cpp index c599d039d1..1e20e12d5a 100644 --- a/3d-viewer/3d_canvas/create_3Dgraphic_brd_items.cpp +++ b/3d-viewer/3d_canvas/create_3Dgraphic_brd_items.cpp @@ -212,7 +212,9 @@ void BOARD_ADAPTER::addFootprintShapes( const FOOTPRINT* aFootprint, CONTAINER_2 if( textbox->GetLayer() == aLayerId ) { - addShape( textbox, aContainer, aFootprint ); + if( textbox->IsBorderEnabled() ) + addShape( textbox, aContainer, aFootprint ); + addText( textbox, aContainer, aFootprint ); } diff --git a/3d-viewer/3d_canvas/create_layer_items.cpp b/3d-viewer/3d_canvas/create_layer_items.cpp index 96eab431ec..a875a0ea94 100644 --- a/3d-viewer/3d_canvas/create_layer_items.cpp +++ b/3d-viewer/3d_canvas/create_layer_items.cpp @@ -607,7 +607,7 @@ void BOARD_ADAPTER::createLayers( REPORTER* aStatusReporter ) case PCB_TEXTBOX_T: addText( static_cast( item ), layerContainer, item ); - addShape( static_cast( item ), layerContainer, item ); + addShape( static_cast( item ), layerContainer, item ); break; case PCB_DIM_ALIGNED_T: diff --git a/pcbnew/footprint.cpp b/pcbnew/footprint.cpp index 1d947f180e..b36d4d1be8 100644 --- a/pcbnew/footprint.cpp +++ b/pcbnew/footprint.cpp @@ -3053,7 +3053,8 @@ void FOOTPRINT::TransformFPShapesToPolySet( SHAPE_POLY_SET& aBuffer, PCB_LAYER_I if( aLayer != UNDEFINED_LAYER && textbox->GetLayer() == aLayer && textbox->IsVisible() ) { // border - textbox->PCB_SHAPE::TransformShapeToPolygon( aBuffer, aLayer, 0, aError, aErrorLoc ); + if( textbox->IsBorderEnabled() ) + textbox->PCB_SHAPE::TransformShapeToPolygon( aBuffer, aLayer, 0, aError, aErrorLoc ); // text textbox->TransformTextToPolySet( aBuffer, 0, aError, aErrorLoc ); }