Use wxDefaultCoord instead of explicit -1 value while initializing wxSize and wxPoint variables.

This commit is contained in:
Artur Wieczorek
2015-07-15 21:24:02 +02:00
parent a8bf2abcd0
commit 4398e20655
4 changed files with 7 additions and 7 deletions

View File

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