X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1f2f0331455e0a91fdbc57afefe8f8c7c0db9392..9838df2cefc5b368bb11f98c784ecc78f45ecaf7:/src/motif/spinbutt.cpp diff --git a/src/motif/spinbutt.cpp b/src/motif/spinbutt.cpp index 6c7c4d4424..73cedd396d 100644 --- a/src/motif/spinbutt.cpp +++ b/src/motif/spinbutt.cpp @@ -32,8 +32,8 @@ bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, c m_windowStyle = style; - SetParent(parent); - + if (parent) parent->AddChild(this); + m_min = 0; m_max = 100;