Browse Source

Wrong type of arguments in wxPen constructor

Has pointed out by Jon Evans the constructor need the .ToColour() and should be called like:
wxPen pen( GetParent()->GetGridColor().ToColour(), h );

Submitted-by: Diogo Condeco <diogocondeco@gmail.com>
pull/3/merge
Jon Evans 9 years ago
committed by Chris Pavlina
parent
commit
f9bc5914b3
  1. 2
      common/draw_panel.cpp

2
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 );

Loading…
Cancel
Save