7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 00:21:25 +00:00

Pcbnew, hatched fill shapes: fix 2 issues:

- Ensure the hatched fill polygon is fractured in all cases
- ensure the filled polygon only, not the outline, is drawn
This commit is contained in:
jean-pierre charras 2025-03-01 16:57:54 +01:00
parent 49a5b44220
commit 00dca4edb3
2 changed files with 5 additions and 0 deletions

View File

@ -2130,7 +2130,11 @@ void PCB_PAINTER::draw( const PCB_SHAPE* aShape, int aLayer )
}
if( aShape->IsHatchedFill() )
{
m_gal->SetIsStroke( false );
m_gal->SetIsFill( true );
m_gal->DrawPolygon( aShape->GetHatching() );
}
}

View File

@ -359,6 +359,7 @@ void PCB_SHAPE::updateHatching() const
}
m_hatching.BooleanSubtract( holes );
m_hatching.Fracture();
}
}