X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9354814833f4685f57bed6116ef9c7e851c8031d..917afc7b81c6f806ea3d50b455f7c4e320ecd68f:/contrib/utils/wxrcedit/pe_basic.cpp?ds=sidebyside diff --git a/contrib/utils/wxrcedit/pe_basic.cpp b/contrib/utils/wxrcedit/pe_basic.cpp index 8ae8056f4f..31f9c17bea 100644 --- a/contrib/utils/wxrcedit/pe_basic.cpp +++ b/contrib/utils/wxrcedit/pe_basic.cpp @@ -18,7 +18,7 @@ #endif #include "wx/wx.h" -#include "wx/xml/xml.h" +#include "wx/xrc/xml.h" #include "wx/tokenzr.h" #include "pe_basic.h" #include "xmlhelpr.h" @@ -69,7 +69,9 @@ void PropEditCtrlTxt::WriteValue() wxWindow *PropEditCtrlInt::CreateEditCtrl() { PropEditCtrlTxt::CreateEditCtrl(); +#if wxUSE_VALIDATORS m_TextCtrl->SetValidator(wxTextValidator(wxFILTER_NUMERIC)); +#endif return m_TextCtrl; }