X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/780fb83cb0d665baec66e651d58d91f6c0af66b0..6143d3b61e311ae647577c284eaf41dded4e2b3c:/src/common/valgen.cpp?ds=sidebyside diff --git a/src/common/valgen.cpp b/src/common/valgen.cpp index 7119e95c4a..e9aaf19e38 100644 --- a/src/common/valgen.cpp +++ b/src/common/valgen.cpp @@ -252,6 +252,7 @@ bool wxGenericValidator::TransferToWindow(void) } } else #endif +#if wxUSE_STATTEXT if (m_validatorWindow->IsKindOf(CLASSINFO(wxStaticText)) ) { wxStaticText* pControl = (wxStaticText*) m_validatorWindow; @@ -261,6 +262,7 @@ bool wxGenericValidator::TransferToWindow(void) return true; } } else +#endif #if wxUSE_TEXTCTRL if (m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)) ) { @@ -474,6 +476,7 @@ bool wxGenericValidator::TransferFromWindow(void) } } else #endif +#if wxUSE_STATTEXT if (m_validatorWindow->IsKindOf(CLASSINFO(wxStaticText)) ) { wxStaticText* pControl = (wxStaticText*) m_validatorWindow; @@ -483,6 +486,7 @@ bool wxGenericValidator::TransferFromWindow(void) return true; } } else +#endif #if wxUSE_TEXTCTRL if (m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)) ) {