projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change many %g format specifiers to %.*g with precision DBL_DIG + 1.
[pspp]
/
src
/
output
/
cairo-chart.c
diff --git
a/src/output/cairo-chart.c
b/src/output/cairo-chart.c
index 42d1248146c2100a290f414dee04d1a0f6f9fd02..88e70493d6585c0f2e8b84f66c760f76e1bdd9db 100644
(file)
--- a/
src/output/cairo-chart.c
+++ b/
src/output/cairo-chart.c
@@
-1,5
+1,5
@@
/* PSPP - a program for statistical analysis.
/* 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
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,
{
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);
}
}
}
}