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:
parent
48a5d6c5f8
commit
48faeb65b3
@ -56,7 +56,7 @@ protected:
|
||||
m_style = style;
|
||||
}
|
||||
|
||||
wxNumValidatorBase(const wxNumValidatorBase& other) : wxValidator()
|
||||
wxNumValidatorBase(const wxNumValidatorBase& other) : wxValidator(other)
|
||||
{
|
||||
m_style = other.m_style;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user