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>
This commit is contained in:
Jon Evans 2017-02-22 19:06:49 +00:00 committed by Chris Pavlina
parent ed16beb5cd
commit f9bc5914b3
1 changed files with 1 additions and 1 deletions

View File

@ -754,7 +754,7 @@ void EDA_DRAW_PANEL::DrawGrid( wxDC* aDC )
const double h = aDC->DeviceToLogicalYRel( gsz ); const double h = aDC->DeviceToLogicalYRel( gsz );
// Use our own pen // Use our own pen
wxPen pen( GetParent()->GetGridColor(), h ); wxPen pen( GetParent()->GetGridColor().ToColour(), h );
pen.SetCap( wxCAP_BUTT ); pen.SetCap( wxCAP_BUTT );
gc->SetPen( pen ); gc->SetPen( pen );