]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed a bug in transferring data to a wxComboBox if string is not
authorJulian Smart <julian@anthemion.co.uk>
Wed, 12 Jun 2002 21:20:56 +0000 (21:20 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 12 Jun 2002 21:20:56 +0000 (21:20 +0000)
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

index 02da993d2524cd15bef6679853757a899d04b76b..d6fc453323d64d6516233fbca9e27f03f7cf5476 100644 (file)
@@ -225,6 +225,10 @@ bool wxGenericValidator::TransferToWindow(void)
             {
                 pControl->SetStringSelection(* m_pString);
             }
+            else
+            {
+                pControl->SetValue(* m_pString);
+            }
             return TRUE;
         }
     } else