]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/statbox.cpp
Applied patch for non-Latin keyboards.
[wxWidgets.git] / src / gtk / statbox.cpp
index b7697b9ce702068a45cf3ed87e1ee3ef500adf18..7afc40103d6317e3272bbc4dcdcc6e04153a8478 100644 (file)
@@ -45,7 +45,7 @@ bool wxStaticBox::Create( wxWindow *parent, wxWindowID id, const wxString &label
         !CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
     {
         wxFAIL_MSG( wxT("wxStaticBox creation failed") );
-       return FALSE;
+           return FALSE;
     }
 
     m_isStaticBox = TRUE;
@@ -61,9 +61,10 @@ bool wxStaticBox::Create( wxWindow *parent, wxWindowID id, const wxString &label
 
     SetLabel(label);
   
+    SetFont( parent->GetFont() );
+
     SetBackgroundColour( parent->GetBackgroundColour() );
     SetForegroundColour( parent->GetForegroundColour() );
-    SetFont( parent->GetFont() );
 
     Show( TRUE );