diff options
author | fvogel <fvogelnew1@free.fr> | 2019-03-24 20:20:39 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2019-03-24 20:20:39 (GMT) |
commit | bd919c12a0d87ab9bf1bd86a114ed66898bbfcd1 (patch) | |
tree | b037286bb5f4f01a4a2172cff4f2ba8db25d4502 /generic/tkScale.c | |
parent | 5d23499fac449980d06f4ca3535f02a27a4052a1 (diff) | |
download | tk-bd919c12a0d87ab9bf1bd86a114ed66898bbfcd1.zip tk-bd919c12a0d87ab9bf1bd86a114ed66898bbfcd1.tar.gz tk-bd919c12a0d87ab9bf1bd86a114ed66898bbfcd1.tar.bz2 |
Name the TICK_VALUES_DISPLAY_ACCURACY constant
Diffstat (limited to 'generic/tkScale.c')
-rw-r--r-- | generic/tkScale.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tkScale.c b/generic/tkScale.c index 8118436..c5cdaff 100644 --- a/generic/tkScale.c +++ b/generic/tkScale.c @@ -904,11 +904,12 @@ ComputeFormat( leastSigDigit = ScaleDigit(scalePtr->tickInterval); /* - * Now add more digits until max error is less than 0.2 intervals + * Now add more digits until max error is less than + * TICK_VALUES_DISPLAY_ACCURACY intervals */ while (MaxTickRoundingError(scalePtr, pow(10, leastSigDigit)) - > fabs(0.2 * scalePtr->tickInterval)) { + > fabs(TICK_VALUES_DISPLAY_ACCURACY * scalePtr->tickInterval)) { --leastSigDigit; } numDigits = 1 + mostSigDigit - leastSigDigit; |