diff --git a/src/gtk/stattext.cpp b/src/gtk/stattext.cpp index a10e98f85b..cebf51d4dd 100644 --- a/src/gtk/stattext.cpp +++ b/src/gtk/stattext.cpp @@ -71,9 +71,9 @@ bool wxStaticText::Create(wxWindow *parent, if (GetLayoutDirection() == wxLayout_RightToLeft) { - if (justify == GTK_JUSTIFY_RIGHT) + if (justify == GTK_JUSTIFY_RIGHT) justify = GTK_JUSTIFY_LEFT; - if (justify == GTK_JUSTIFY_LEFT) + else if (justify == GTK_JUSTIFY_LEFT) justify = GTK_JUSTIFY_RIGHT; }