X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcairo-chart.c;h=88e70493d6585c0f2e8b84f66c760f76e1bdd9db;hb=14f4522a17db23e67a6fa17876633cc6260cb42b;hp=42d1248146c2100a290f414dee04d1a0f6f9fd02;hpb=5f91f0868ec7cdbdb7900a2cb6e876b467fb2a6e;p=pspp diff --git a/src/output/cairo-chart.c b/src/output/cairo-chart.c index 42d1248146..88e70493d6 100644 --- a/src/output/cairo-chart.c +++ b/src/output/cairo-chart.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2004, 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2004, 2009, 2010, 2011, 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 @@ -367,7 +367,8 @@ xrchart_write_scale (cairo_t *cr, struct xrchart_geometry *geom, { double pos = (s + lower) * tick_interval; draw_tick (cr, geom, orient, false, - s * tick_interval * geom->axis[orient].scale, "%g", pos); + s * tick_interval * geom->axis[orient].scale, "%.*g", + DBL_DIG + 1, pos); } }