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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user