Fix copy ctor in numeric validators classes

wxFloatingPointValidator and wxIntegerValidator copy ctor didn't copy
the associated window, so it was lost when the validator was Clone()'d.

Fix this by correctly using wxValidator copy ctor, instead of the
default one, in the copy ctor of the common wxNumValidatorBase base
class.
This commit is contained in:
Vadim Zeitlin 2018-01-04 21:39:57 +01:00
parent 48a5d6c5f8
commit 48faeb65b3

View File

@ -56,7 +56,7 @@ protected:
m_style = style;
}
wxNumValidatorBase(const wxNumValidatorBase& other) : wxValidator()
wxNumValidatorBase(const wxNumValidatorBase& other) : wxValidator(other)
{
m_style = other.m_style;
}