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:
@@ -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;
|
||||
};
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user