# HG changeset patch # User Chris Cannam # Date 1526482036 -3600 # Node ID 5630df84d99f941c2cdf5155398fae603fa5c8e9 # Parent f6891128299316e9778f01ef5e2faec70fc8eae9 Make all eps the same (hoping to fix the test that only fails in Travis) diff -r f68911282993 -r 5630df84d99f base/ScaleTickIntervals.h --- a/base/ScaleTickIntervals.h Tue May 15 15:50:40 2018 +0100 +++ b/base/ScaleTickIntervals.h Wed May 16 15:47:16 2018 +0100 @@ -154,7 +154,7 @@ // to 2 or a min of -0.9999999999 rounding to 0, both of // which would prevent some of our test cases from getting // the most natural results. - double eps = 1e-8; + double eps = 1e-7; inc = round(inc / roundTo + eps) * roundTo; if (inc < roundTo) inc = roundTo; min = ceil(min / roundTo - eps) * roundTo; @@ -266,7 +266,7 @@ if (display == Auto) { - double eps = 1e-10; + double eps = 1e-7; int digits = (value != 0.0 ? 1 + int(floor(eps + log10(abs(value)))) :