]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/textctrl.cpp
removed assert(size != 0) from wxArrayString::Alloc(size) as it was inconsistent...
[wxWidgets.git] / src / os2 / textctrl.cpp
index 4070a296890d54c460df26f2433ff1d3257623aa..61e2be6e405df0b06f6171c56fcddb6c5c7832ec 100644 (file)
@@ -208,16 +208,12 @@ bool wxTextCtrl::Create(
     //
     // Set font, position, size and initial value
     //
-    wxFont&                         vFontParent = pParent->GetFont();
-
-    if (vFontParent.Ok())
-    {
-        SetFont(vFontParent);
-    }
-    else
-    {
-        SetFont(wxSystemSettings::GetFont(wxSYS_SYSTEM_FONT));
-    }
+    wxFont*                          pTextFont = new wxFont( 10
+                                                            ,wxMODERN
+                                                            ,wxNORMAL
+                                                            ,wxNORMAL
+                                                           );
+    SetFont(*pTextFont);
     if (!rsValue.IsEmpty())
     {
         SetValue(rsValue);