From 7b235dce88ca7e3fc0182c5b8ce088f1281c3321 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 5 Nov 2007 21:21:09 +0000 Subject: [PATCH] temporary wxMotif compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/valtext.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/valtext.cpp b/src/common/valtext.cpp index 0c1eeaba2d..202e8195fa 100644 --- a/src/common/valtext.cpp +++ b/src/common/valtext.cpp @@ -84,12 +84,16 @@ wxTextEntry *wxTextValidator::GetTextEntry() return (wxTextCtrl*)m_validatorWindow; } #endif + + // FIXME: in wxMotif wxComboBox doesn't derive from wxTextCtrl yet +#ifndef __WXMOTIF__ #if wxUSE_COMBOBOX if (m_validatorWindow->IsKindOf(CLASSINFO(wxComboBox))) { return (wxComboBox*)m_validatorWindow; } #endif +#endif // !__WXMOTIF__ wxFAIL_MSG( _T("wxTextValidator can only be used with wxTextCtrl or wxComboBox") -- 2.45.2