Small change to SetFont() logic.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-11-14 17:04:36 +00:00
parent cb148defda
commit 454e2a22c0
4 changed files with 10 additions and 48 deletions

View File

@@ -62,6 +62,8 @@ bool wxStaticText::Create(wxWindow *parent,
wxControl::SetLabel(label);
m_widget = gtk_label_new( m_label.mbc_str() );
SetFont( parent->GetFont() );
GtkJustification justify;
if ( style & wxALIGN_CENTER )
justify = GTK_JUSTIFY_CENTER;
@@ -89,8 +91,6 @@ bool wxStaticText::Create(wxWindow *parent,
SetBackgroundColour( parent->GetBackgroundColour() );
SetForegroundColour( parent->GetForegroundColour() );
SetFont( parent->GetFont() );
Show( TRUE );
return TRUE;