changeset 1469:1cc106bf601d

Ha!
author Chris Cannam
date Thu, 17 May 2018 12:07:21 +0100
parents 5f23274e21f9
children 7d9b537b6a1e
files base/ScaleTickIntervals.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/base/ScaleTickIntervals.h	Thu May 17 11:33:33 2018 +0100
+++ b/base/ScaleTickIntervals.h	Thu May 17 12:07:21 2018 +0100
@@ -269,7 +269,7 @@
             double eps = 1e-7;
             
             int digits = (value != 0.0 ?
-                          1 + int(floor(eps + log10(abs(value)))) :
+                          1 + int(floor(eps + log10(fabs(value)))) :
                           0);
 
 #ifdef DEBUG_SCALE_TICK_INTERVALS
@@ -361,7 +361,7 @@
                 // We don't want the internal value secretly not
                 // matching the displayed one
                 roundTo =
-                    pow(10, ceil(log10(abs(value))) - instruction.precision);
+                    pow(10, ceil(log10(fabs(value))) - instruction.precision);
             }
                                            
             if (roundTo != 0.0) {