X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9453cf2bd702241fabc417e9dd5cd7422bcd9966..18128cbb47b5775f20fb449dd34f36fa31776d51:/include/wx/generic/spinctlg.h diff --git a/include/wx/generic/spinctlg.h b/include/wx/generic/spinctlg.h index 29d3c0faab..c442db8e9b 100644 --- a/include/wx/generic/spinctlg.h +++ b/include/wx/generic/spinctlg.h @@ -47,6 +47,7 @@ public: int min = 0, int max = 100, int initial = 0, const wxString& name = _T("wxSpinCtrl")) { + Init(); Create(parent, id, value, pos, size, style, min, max, initial, name); } @@ -91,7 +92,7 @@ public: protected: // override the base class virtuals involved into geometry calculations - virtual wxSize DoGetBestClientSize() const; + virtual wxSize DoGetBestSize() const; virtual void DoMoveWindow(int x, int y, int width, int height); // common part of all ctors