X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/026767c6aee4c61b904fe68b79af186258fd6005..8606ee50771053a38554c7d38b765a8142a1a96c:/include/wx/propgrid/props.h diff --git a/include/wx/propgrid/props.h b/include/wx/propgrid/props.h index 84f7d5191c..77470cda2c 100644 --- a/include/wx/propgrid/props.h +++ b/include/wx/propgrid/props.h @@ -27,6 +27,7 @@ class wxPGArrayEditorDialog; #include "wx/textctrl.h" #include "wx/button.h" #include "wx/listbox.h" +#include "wx/valtext.h" // ----------------------------------------------------------------------- @@ -148,7 +149,7 @@ enum wxPGNumericValidationConstants /** A more comprehensive numeric validator class. */ -class wxNumericPropertyValidator : public wxTextValidator +class WXDLLIMPEXP_PROPGRID wxNumericPropertyValidator : public wxTextValidator { public: enum NumericType @@ -996,7 +997,7 @@ public: void SetCustomButton( const wxString& custBtText, wxArrayStringProperty* pcc ) { - if ( custBtText.length() ) + if ( !custBtText.empty() ) { EnableCustomNewAction(); m_pCallingClass = pcc;