X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f40fdaa339e19bbdf60c9c065c82daae4ca77b36..26364344e58ae9c384965ff25c6920a75c55184e:/src/gtk/spinbutt.cpp diff --git a/src/gtk/spinbutt.cpp b/src/gtk/spinbutt.cpp index a62d2c121e..c11142163f 100644 --- a/src/gtk/spinbutt.cpp +++ b/src/gtk/spinbutt.cpp @@ -21,9 +21,7 @@ #if wxUSE_SPINBTN #include "wx/utils.h" - -#include - +#include "wx/math.h" #include "wx/gtk/private.h" //----------------------------------------------------------------------------- @@ -227,7 +225,9 @@ bool wxSpinButton::IsOwnGtkWindow( GdkWindow *window ) wxSize wxSpinButton::DoGetBestSize() const { - return wxSize(15, 26); // FIXME + wxSize best(15, 26); // FIXME + CacheBestSize(best); + return best; } // static