From 48faeb65b3d1786a19359798f46b1d8a92d7e8d4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 4 Jan 2018 21:39:57 +0100 Subject: [PATCH] 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. --- include/wx/valnum.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/valnum.h b/include/wx/valnum.h index 540f9d6b82..f4436cb027 100644 --- a/include/wx/valnum.h +++ b/include/wx/valnum.h @@ -56,7 +56,7 @@ protected: m_style = style; } - wxNumValidatorBase(const wxNumValidatorBase& other) : wxValidator() + wxNumValidatorBase(const wxNumValidatorBase& other) : wxValidator(other) { m_style = other.m_style; }