diff --git a/common/draw_panel.cpp b/common/draw_panel.cpp index 4d91fa4a32..5b9bca320f 100644 --- a/common/draw_panel.cpp +++ b/common/draw_panel.cpp @@ -754,7 +754,7 @@ void EDA_DRAW_PANEL::DrawGrid( wxDC* aDC ) const double h = aDC->DeviceToLogicalYRel( gsz ); // Use our own pen - wxPen pen( GetParent()->GetGridColor(), h ); + wxPen pen( GetParent()->GetGridColor().ToColour(), h ); pen.SetCap( wxCAP_BUTT ); gc->SetPen( pen );