Fix accidental plotting of disabled textbox borders

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15252
This commit is contained in:
Marek Roszko
2023-08-24 21:03:48 -04:00
parent d193334a10
commit 339684263c
4 changed files with 36 additions and 15 deletions
+4 -2
View File
@@ -359,7 +359,8 @@ void BRDITEMS_PLOTTER::PlotBoardGraphicItem( const BOARD_ITEM* item )
{
const PCB_TEXTBOX* textbox = static_cast<const PCB_TEXTBOX*>( item );
PlotText( textbox, textbox->GetLayer(), textbox->IsKnockout(), textbox->GetFontMetrics() );
PlotShape( textbox );
if( textbox->IsBorderEnabled() )
PlotShape( textbox );
break;
}
@@ -517,7 +518,8 @@ void BRDITEMS_PLOTTER::PlotFootprintGraphicItems( const FOOTPRINT* aFootprint )
{
PlotText( textbox, textbox->GetLayer(), textbox->IsKnockout(),
textbox->GetFontMetrics() );
PlotShape( textbox );
if( textbox->IsBorderEnabled() )
PlotShape( textbox );
}
break;