wxPropertyGrid validation failure was not (always) reset when a valid value was entered after an invalid one.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2010-07-03 11:43:49 +00:00
parent 3217f79df1
commit 8915141c1e
2 changed files with 28 additions and 0 deletions

View File

@@ -420,6 +420,16 @@ class WXDLLIMPEXP_PROPGRID wxPGValidationInfo
{
friend class wxPropertyGrid;
public:
wxPGValidationInfo()
{
m_failureBehavior = 0;
m_isFailing = false;
}
~wxPGValidationInfo()
{
}
/**
@return Returns failure behavior which is a combination of
@ref propgrid_vfbflags.
@@ -468,6 +478,9 @@ private:
/** Validation failure behavior. Use wxPG_VFB_XXX flags.
*/
wxPGVFBFlags m_failureBehavior;
// True when validation is currently failing.
bool m_isFailing;
};
// -----------------------------------------------------------------------