X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..9ac71bef070f553f4ecef2c549dba33b10422f06:/src/common/valgen.cpp?ds=sidebyside diff --git a/src/common/valgen.cpp b/src/common/valgen.cpp index ee65e02c47..d6fc453323 100644 --- a/src/common/valgen.cpp +++ b/src/common/valgen.cpp @@ -81,6 +81,7 @@ wxGenericValidator::wxGenericValidator(wxArrayInt *val) } wxGenericValidator::wxGenericValidator(const wxGenericValidator& val) + : wxValidator() { Copy(val); } @@ -224,6 +225,10 @@ bool wxGenericValidator::TransferToWindow(void) { pControl->SetStringSelection(* m_pString); } + else + { + pControl->SetValue(* m_pString); + } return TRUE; } } else @@ -442,7 +447,7 @@ bool wxGenericValidator::TransferFromWindow(void) } else if (m_pString) { - *m_pString = pControl->GetStringSelection(); + *m_pString = pControl->GetValue(); return TRUE; } } else