Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
1414:c57994e1edd7 | 1415:12316a9bcc8f |
---|---|
102 int precRange = int(ceil(digMax - digInc)); | 102 int precRange = int(ceil(digMax - digInc)); |
103 | 103 |
104 int prec = 1; | 104 int prec = 1; |
105 | 105 |
106 if (fixed) { | 106 if (fixed) { |
107 if (precInc < 0) { | 107 if (digInc < 0) { |
108 prec = -precInc; | 108 prec = -precInc; |
109 } else if (precInc > 0) { | 109 } else { |
110 prec = 0; | 110 prec = 0; |
111 } | 111 } |
112 } else { | 112 } else { |
113 prec = precRange; | 113 prec = precRange; |
114 } | 114 } |