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:
parent
ed16beb5cd
commit
f9bc5914b3
|
@ -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 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue