X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpspp-widget-facade.c;h=be785dc133c4ca69aa0134a95975b398ff0df5a5;hb=83239cbb53294662025d5ee957d7e24e5feb66a9;hp=e5070bff3ec97f0b5446e6dd9c2bc3c96ae80807;hpb=c1cfd49c4330af003a83d0d703a5ddf06daeccf5;p=pspp diff --git a/src/ui/gui/pspp-widget-facade.c b/src/ui/gui/pspp-widget-facade.c index e5070bff3e..be785dc133 100644 --- a/src/ui/gui/pspp-widget-facade.c +++ b/src/ui/gui/pspp-widget-facade.c @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2011, 2012 Free Software Foundation, Inc. + Copyright (C) 2011, 2012, 2014 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -270,9 +270,7 @@ get_layout_location (GtkWidget *base, PangoRectangle logical; GtkRequisition req; - if (gtk_widget_get_direction (base) == GTK_TEXT_DIR_LTR) - xalign = xalign; - else + if (gtk_widget_get_direction (base) == GTK_TEXT_DIR_RTL) xalign = 1.0 - xalign; pango_layout_get_pixel_extents (layout, NULL, &logical);