diff --git a/pcbnew/pcb_painter.cpp b/pcbnew/pcb_painter.cpp index d2cbec28f0..ecea299ad2 100644 --- a/pcbnew/pcb_painter.cpp +++ b/pcbnew/pcb_painter.cpp @@ -996,7 +996,7 @@ void PCB_PAINTER::draw( const DRAWSEGMENT* aSegment, int aLayer ) m_gal->SetLineWidth( thickness ); - m_gal->SetIsFill( aSegment->IsPolygonFilled ); + m_gal->SetIsFill( aSegment->IsPolygonFilled() ); m_gal->SetIsStroke( true ); m_gal->DrawPolygon( shape );