X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-data-store.c;h=c761c237edc3422726d8c4e48c6697f4c3817abd;hb=e66ec694c4237bbc9e77bb3822a333377318ef94;hp=840c4c832574eb11d3db0efc2646cd1009eb2142;hpb=4f2f805c653f0dc901924944ea4c55309ff14d32;p=pspp-builds.git diff --git a/src/ui/gui/psppire-data-store.c b/src/ui/gui/psppire-data-store.c index 840c4c83..c761c237 100644 --- a/src/ui/gui/psppire-data-store.c +++ b/src/ui/gui/psppire-data-store.c @@ -715,9 +715,9 @@ geometry_get_justification(const GSheetColumn *geom, gint unit) pv = psppire_dict_get_variable(ds->dict, unit); - /* Kludge: Happily GtkJustification is defined similarly - to enum alignment from pspp/variable.h */ - return var_get_alignment(pv); + return (var_get_alignment (pv) == ALIGN_LEFT ? GTK_JUSTIFY_LEFT + : var_get_alignment (pv) == ALIGN_RIGHT ? GTK_JUSTIFY_RIGHT + : GTK_JUSTIFY_CENTER); }