X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/97a8589874779b8472f390f96542929d67943d4c..38b36b4c679d20adb70d1695f3be9b801fdbf556:/src/gtk/stattext.cpp diff --git a/src/gtk/stattext.cpp b/src/gtk/stattext.cpp index 20b9b97418..6fe31c64c6 100644 --- a/src/gtk/stattext.cpp +++ b/src/gtk/stattext.cpp @@ -72,15 +72,15 @@ bool wxStaticText::Create(wxWindow *parent, justify = GTK_JUSTIFY_RIGHT; else // wxALIGN_LEFT is 0 justify = GTK_JUSTIFY_LEFT; - + if (GetLayoutDirection() == wxLayout_RightToLeft) - { + { if (justify == GTK_JUSTIFY_RIGHT) justify = GTK_JUSTIFY_LEFT; if (justify == GTK_JUSTIFY_LEFT) justify = GTK_JUSTIFY_RIGHT; } - + gtk_label_set_justify(GTK_LABEL(m_widget), justify); // GTK_JUSTIFY_LEFT is 0, RIGHT 1 and CENTER 2