]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/stattext.cpp
added wxTextEntry::DoGetValue() to allow returning empty string if the control curren...
[wxWidgets.git] / src / gtk / stattext.cpp
index 5e9bac45b2541b1644690d451e62d9e8a54bc58f..e9366a1e380a65095122356967bfcac5c7c14dde 100644 (file)
@@ -52,9 +52,10 @@ bool wxStaticText::Create(wxWindow *parent,
     }
 
     m_widget = gtk_label_new(NULL);
+    g_object_ref(m_widget);
 
     GtkJustification justify;
-    if ( style & wxALIGN_CENTER )
+    if ( style & wxALIGN_CENTER_HORIZONTAL )
       justify = GTK_JUSTIFY_CENTER;
     else if ( style & wxALIGN_RIGHT )
       justify = GTK_JUSTIFY_RIGHT;