X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d491523b1f5aef1081306d7e3002eb63b91c5cc9..f8d791e0a41f1021a69c3d6320ee6934c0dd7f36:/src/common/valgen.cpp diff --git a/src/common/valgen.cpp b/src/common/valgen.cpp index 706dfe892e..b4814ac7b0 100644 --- a/src/common/valgen.cpp +++ b/src/common/valgen.cpp @@ -56,6 +56,8 @@ #include "wx/valgen.h" +IMPLEMENT_CLASS(wxGenericValidator, wxValidator) + wxGenericValidator::wxGenericValidator(bool *val) { Initialize(); @@ -81,6 +83,7 @@ wxGenericValidator::wxGenericValidator(wxArrayInt *val) } wxGenericValidator::wxGenericValidator(const wxGenericValidator& val) + : wxValidator() { Copy(val); } @@ -224,6 +227,10 @@ bool wxGenericValidator::TransferToWindow(void) { pControl->SetStringSelection(* m_pString); } + else + { + pControl->SetValue(* m_pString); + } return TRUE; } } else