]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/spinctrl.cpp
use wxALIGN_LEFT/CENTRE/RIGHT instead of wxTE_XXX to avoid problems with the latter...
[wxWidgets.git] / src / gtk / spinctrl.cpp
index 5d1e3c18e3fc5f25e097f8f005538e311f4b9601..5c53cd491acae0eb8aeafb176e4731ed9c9d5d84 100644 (file)
@@ -119,9 +119,9 @@ bool wxSpinCtrlGTKBase::Create(wxWindow *parent, wxWindowID id,
     m_value = gtk_spin_button_get_value( GTK_SPIN_BUTTON(m_widget));
 
     gfloat align;
-    if ( HasFlag(wxTE_RIGHT) )
+    if ( HasFlag(wxALIGN_RIGHT) )
         align = 1.0;
-    else if ( HasFlag(wxTE_CENTRE) )
+    else if ( HasFlag(wxALIGN_CENTRE) )
         align = 0.5;
     else
         align = 0.0;