X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ca65c0440a7163e4e37e48b1c4329709d722db47..a6ed2b09a3e737e58f9ee7d0674be6c7ae1427c5:/src/generic/spinctlg.cpp diff --git a/src/generic/spinctlg.cpp b/src/generic/spinctlg.cpp index 148dd99b20..066e66f381 100644 --- a/src/generic/spinctlg.cpp +++ b/src/generic/spinctlg.cpp @@ -62,7 +62,7 @@ public: m_spin = spin; // remove the default minsize, the spinctrl will have one instead - SetSizeHints(wxDefaultSize.x,wxDefaultSize.y); + SetSizeHints(wxDefaultCoord,wxDefaultCoord); } protected: @@ -111,7 +111,7 @@ public: SetWindowStyle(style | wxSP_VERTICAL); // remove the default minsize, the spinctrl will have one instead - SetSizeHints(wxDefaultSize.x,wxDefaultSize.y); + SetSizeHints(wxDefaultCoord,wxDefaultCoord); } protected: @@ -234,7 +234,7 @@ void wxSpinCtrl::DoMoveWindow(int x, int y, int width, int height) wxCoord wText = width - sizeBtn.x; m_text->SetSize(x, y, wText, height); - m_btn->SetSize(x + wText + MARGIN, y, wxDefaultSize.x, height); + m_btn->SetSize(x + wText + MARGIN, y, wxDefaultCoord, height); } // ----------------------------------------------------------------------------