projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleaning up common OSX code
[wxWidgets.git]
/
src
/
generic
/
combog.cpp
diff --git
a/src/generic/combog.cpp
b/src/generic/combog.cpp
index 8deece85894b5b94fee414730ff7fc1ddea6e638..f2cb9abf6789915269f1095d50e8901b1087a2c5 100644
(file)
--- a/
src/generic/combog.cpp
+++ b/
src/generic/combog.cpp
@@
-32,6
+32,7
@@
#include "wx/combobox.h"
#include "wx/dcclient.h"
#include "wx/settings.h"
#include "wx/combobox.h"
#include "wx/dcclient.h"
#include "wx/settings.h"
+ #include "wx/textctrl.h"
#endif
#include "wx/dcbuffer.h"
#endif
#include "wx/dcbuffer.h"
@@
-392,6
+393,7
@@
void wxGenericComboCtrl::SetCustomPaintWidth( int width )
tc->RemoveEventHandler(m_textEvtHandler);
delete m_textEvtHandler;
tc->RemoveEventHandler(m_textEvtHandler);
delete m_textEvtHandler;
+#if wxUSE_VALIDATORS
wxValidator* pValidator = tc->GetValidator();
if ( pValidator )
{
wxValidator* pValidator = tc->GetValidator();
if ( pValidator )
{
@@
-400,6
+402,7
@@
void wxGenericComboCtrl::SetCustomPaintWidth( int width )
delete pValidator;
}
else
delete pValidator;
}
else
+#endif
{
CreateTextCtrl( tcCreateStyle, wxDefaultValidator );
}
{
CreateTextCtrl( tcCreateStyle, wxDefaultValidator );
}