]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/statbox.cpp
Added missing test in wxObject::Ref() for already
[wxWidgets.git] / src / os2 / statbox.cpp
index 7ca2b7fa23208f60f6f7fcf7f5485e30c2537b71..61f5db74d6cf964bb3d8488d21d466b94a39f386 100644 (file)
@@ -79,12 +79,18 @@ bool wxStaticBox::Create(
                       ,sizeof(LONG)
                       ,(PVOID)&lColor
                      );
-    SetFont(*wxSMALL_FONT);
+    wxFont*                          pTextFont = new wxFont( 10
+                                                            ,wxMODERN
+                                                            ,wxNORMAL
+                                                            ,wxNORMAL
+                                                           );
+    SetFont(*pTextFont);
     SetSize( rPos.x
             ,rPos.y
             ,rSize.x
             ,rSize.y
            );
+    delete pTextFont;
     return TRUE;
 } // end of wxStaticBox::Create