projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
trials for proper synchronizing between different contexts on the same window
[wxWidgets.git]
/
src
/
gtk
/
spinctrl.cpp
diff --git
a/src/gtk/spinctrl.cpp
b/src/gtk/spinctrl.cpp
index 9390128cf0e2cd611e2c34472949b6765f1720bc..10aa9301389e236a3722bb633aade9d71a5ddf0d 100644
(file)
--- a/
src/gtk/spinctrl.cpp
+++ b/
src/gtk/spinctrl.cpp
@@
-22,9
+22,7
@@
#include "wx/utils.h"
#include "wx/textctrl.h" // for wxEVT_COMMAND_TEXT_UPDATED
#include "wx/utils.h"
#include "wx/textctrl.h" // for wxEVT_COMMAND_TEXT_UPDATED
-
-#include <math.h>
-
+#include "wx/math.h"
#include "wx/gtk/private.h"
//-----------------------------------------------------------------------------
#include "wx/gtk/private.h"
//-----------------------------------------------------------------------------
@@
-301,7
+299,9
@@
bool wxSpinCtrl::IsOwnGtkWindow( GdkWindow *window )
wxSize wxSpinCtrl::DoGetBestSize() const
{
wxSize ret( wxControl::DoGetBestSize() );
wxSize wxSpinCtrl::DoGetBestSize() const
{
wxSize ret( wxControl::DoGetBestSize() );
- return wxSize(95, ret.y);
+ wxSize best(95, ret.y);
+ CacheBestSize(best);
+ return best;
}
// static
}
// static