]> git.saurik.com Git - wxWidgets.git/commitdiff
fix wxALIGN_RIGHT in RTL mode
authorPaul Cornett <paulcor@bullseye.com>
Sat, 2 Feb 2008 18:47:35 +0000 (18:47 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Sat, 2 Feb 2008 18:47:35 +0000 (18:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/stattext.cpp

index a10e98f85bce2f78c4b6b83d4c17298d1fb6a2ff..cebf51d4dd1c25b59de89e04d24b7e4fd09e241e 100644 (file)
@@ -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;
     }