From 7cc3cec9a7c19df7897f878e0ecf2ae30d2bb0d6 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 12 Jun 2002 21:20:56 +0000 Subject: [PATCH] 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 --- src/common/valgen.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.45.2