diff options
author | fvogel <fvogelnew1@free.fr> | 2019-03-28 19:34:20 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2019-03-28 19:34:20 (GMT) |
commit | dc37e2284b4baccb9a8e7220604bc667d7050129 (patch) | |
tree | b037286bb5f4f01a4a2172cff4f2ba8db25d4502 /generic | |
parent | 155b295553449458a4eb8bd2a3ab1f12df26cf3b (diff) | |
download | tk-dc37e2284b4baccb9a8e7220604bc667d7050129.zip tk-dc37e2284b4baccb9a8e7220604bc667d7050129.tar.gz tk-dc37e2284b4baccb9a8e7220604bc667d7050129.tar.bz2 |
Revert previous commit following discussion on tcl-core list.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkScale.c | 4 | ||||
-rw-r--r-- | generic/tkScale.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkScale.c b/generic/tkScale.c index b28b08d..c5cdaff 100644 --- a/generic/tkScale.c +++ b/generic/tkScale.c @@ -905,11 +905,11 @@ ComputeFormat( /* * Now add more digits until max error is less than - * TICK_VALUES_DISPLAY_PRECISION intervals + * TICK_VALUES_DISPLAY_ACCURACY intervals */ while (MaxTickRoundingError(scalePtr, pow(10, leastSigDigit)) - > fabs(TICK_VALUES_DISPLAY_PRECISION * scalePtr->tickInterval)) { + > fabs(TICK_VALUES_DISPLAY_ACCURACY * scalePtr->tickInterval)) { --leastSigDigit; } numDigits = 1 + mostSigDigit - leastSigDigit; diff --git a/generic/tkScale.h b/generic/tkScale.h index b307aa2..e68b786 100644 --- a/generic/tkScale.h +++ b/generic/tkScale.h @@ -222,7 +222,7 @@ typedef struct TkScale { * accurate to within the following proportion of a tick interval. */ -#define TICK_VALUES_DISPLAY_PRECISION 0.2 +#define TICK_VALUES_DISPLAY_ACCURACY 0.2 /* * Declaration of procedures used in the implementation of the scale widget. |