From: Julian Smart Date: Wed, 12 Jun 2002 21:20:56 +0000 (+0000) Subject: Fixed a bug in transferring data to a wxComboBox if string is not X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7cc3cec9a7c19df7897f878e0ecf2ae30d2bb0d6 Fixed a bug in transferring data to a wxComboBox if string is not in the list of strings. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/valgen.cpp b/src/common/valgen.cpp index 02da993d25..d6fc453323 100644 --- a/src/common/valgen.cpp +++ b/src/common/valgen.cpp @@ -225,6 +225,10 @@ bool wxGenericValidator::TransferToWindow(void) { pControl->SetStringSelection(* m_pString); } + else + { + pControl->SetValue(* m_pString); + } return TRUE; } } else