diff base/ScaleTickIntervals.h @ 1415:12316a9bcc8f scale-ticks

After seeing them in action, I changed my mind about the wisdom of these trailing .0s
author Chris Cannam
date Thu, 04 May 2017 10:46:38 +0100
parents c57994e1edd7
children 359147a50853
line wrap: on
line diff
--- a/base/ScaleTickIntervals.h	Thu May 04 10:14:56 2017 +0100
+++ b/base/ScaleTickIntervals.h	Thu May 04 10:46:38 2017 +0100
@@ -104,9 +104,9 @@
         int prec = 1;
         
         if (fixed) {
-            if (precInc < 0) {
+            if (digInc < 0) {
                 prec = -precInc;
-            } else if (precInc > 0) {
+            } else {
                 prec = 0;
             }
         } else {