Avoid floating point precision problems in chart scale 20120324030503/pspp
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 24 Mar 2012 09:10:19 +0000 (10:10 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 24 Mar 2012 09:10:19 +0000 (10:10 +0100)
commitfbed9cb6fdc9ca4d1c85a1b8138fedb0451a3aaa
treec219b951795f8d004b57fb8adefd29ba69fd6c7e
parent084a3ed2450295a9f1ebfd30b9a93f1e3dac7bf1
Avoid floating point precision problems in chart scale

Some charts were being drawn with a tick mark at positions
close to but not exactly zero Eg: 2.187433298e-27
This change avoids this problem.
src/output/cairo-chart.c