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:
parent
49a5b44220
commit
00dca4edb3
@ -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() );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -359,6 +359,7 @@ void PCB_SHAPE::updateHatching() const
|
||||
}
|
||||
|
||||
m_hatching.BooleanSubtract( holes );
|
||||
m_hatching.Fracture();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user