]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/valgen.cpp
Allow building wxProtocol without wxUSE_SOCKETS
[wxWidgets.git] / src / common / valgen.cpp
index 706dfe892e7ed6d0f2f1ba2d0e7eafe4b01eeb06..d6fc453323d64d6516233fbca9e27f03f7cf5476 100644 (file)
@@ -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