]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/combobox.cpp
don't use strlen() to verify the length of the string as it can contain embedded...
[wxWidgets.git] / src / os2 / combobox.cpp
index 75a033757860dc55d5103375ab142aa6dde81532..2c28d28b70c4bb1d3cda431c9152129dd9d4426c 100644 (file)
@@ -167,7 +167,7 @@ bool wxComboBox::Create(
     int nEditHeight;
     wxGetCharSize( GetHWND(), NULL, &nEditHeight, &vFont );
     nEditHeight = EDIT_HEIGHT_FROM_CHAR_HEIGHT(nEditHeight);
-    SetInitialSize(-1,nEditHeight+4));   // +2x2 for the border
+    SetInitialSize(wxSize(-1,nEditHeight+4));   // +2x2 for the border
 
     if (!rsValue.empty())
     {