temporary wxMotif compilation fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-11-05 21:21:09 +00:00
parent 593ac8df8e
commit 7b235dce88

View File

@@ -84,12 +84,16 @@ wxTextEntry *wxTextValidator::GetTextEntry()
return (wxTextCtrl*)m_validatorWindow; return (wxTextCtrl*)m_validatorWindow;
} }
#endif #endif
// FIXME: in wxMotif wxComboBox doesn't derive from wxTextCtrl yet
#ifndef __WXMOTIF__
#if wxUSE_COMBOBOX #if wxUSE_COMBOBOX
if (m_validatorWindow->IsKindOf(CLASSINFO(wxComboBox))) if (m_validatorWindow->IsKindOf(CLASSINFO(wxComboBox)))
{ {
return (wxComboBox*)m_validatorWindow; return (wxComboBox*)m_validatorWindow;
} }
#endif #endif
#endif // !__WXMOTIF__
wxFAIL_MSG( wxFAIL_MSG(
_T("wxTextValidator can only be used with wxTextCtrl or wxComboBox") _T("wxTextValidator can only be used with wxTextCtrl or wxComboBox")