Fix other stroke types still drawing the border regardless of enable

This commit is contained in:
Marek Roszko 2023-08-31 07:52:19 -04:00
parent 21c54f9721
commit 37717a8281
1 changed files with 22 additions and 19 deletions

View File

@ -2149,9 +2149,11 @@ void PCB_PAINTER::draw( const PCB_TEXTBOX* aTextBox, int aLayer )
m_gal->SetIsFill( true );
m_gal->SetIsStroke( false );
if( aTextBox->IsBorderEnabled() )
{
if( lineStyle <= PLOT_DASH_TYPE::FIRST_TYPE )
{
if( aTextBox->IsBorderEnabled() && thickness > 0 )
if( thickness > 0 )
{
std::vector<VECTOR2I> pts = aTextBox->GetCorners();
@ -2175,6 +2177,7 @@ void PCB_PAINTER::draw( const PCB_TEXTBOX* aTextBox, int aLayer )
for( SHAPE* shape : shapes )
delete shape;
}
}
if( resolvedText.Length() == 0 )
return;