X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e65cc56a3b275ef24ab117dfcd84b75dd33ab66f..babd4308f2704f4234e271d29a8e8c1e211b4af6:/src/gtk1/spinbutt.cpp diff --git a/src/gtk1/spinbutt.cpp b/src/gtk1/spinbutt.cpp index 898eb4f4b9..762d4cc3be 100644 --- a/src/gtk1/spinbutt.cpp +++ b/src/gtk1/spinbutt.cpp @@ -189,6 +189,10 @@ void wxSpinButton::SetRange(int minVal, int maxVal) m_adjust->upper = fmax; gtk_signal_emit_by_name( GTK_OBJECT(m_adjust), "changed" ); + + // these two calls are required due to some bug in GTK + Refresh(); + SetFocus(); } void wxSpinButton::OnSize( wxSizeEvent &WXUNUSED(event) )