From: Paul Cornett Date: Sat, 2 Feb 2008 18:47:35 +0000 (+0000) Subject: fix wxALIGN_RIGHT in RTL mode X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a1a48c8a955d64abde7fd97ddf21f9469c2b5ee7 fix wxALIGN_RIGHT in RTL mode git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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; }