Use wxDefaultCoord instead of explicit -1 value while initializing wxSize and wxPoint variables.
This commit is contained in:
@@ -2009,7 +2009,7 @@ wxWindow* wxPropertyGrid::GenerateEditorButton( const wxPoint& pos, const wxSize
|
||||
|
||||
wxPoint p(pos.x+sz.x,
|
||||
pos.y+wxPG_BUTTON_SIZEDEC-wxPG_NAT_BUTTON_BORDER_Y);
|
||||
wxSize s(25, -1);
|
||||
wxSize s(25, wxDefaultCoord);
|
||||
|
||||
wxButton* but = new wxButton();
|
||||
but->Create(GetPanel(),wxID_ANY,wxS("..."),p,s,wxWANTS_CHARS);
|
||||
|
Reference in New Issue
Block a user