diff options
author | fvogel <fvogelnew1@free.fr> | 2019-03-26 07:14:28 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2019-03-26 07:14:28 (GMT) |
commit | 155b295553449458a4eb8bd2a3ab1f12df26cf3b (patch) | |
tree | abff4ae30128856cece5ddbc97560076f1534ce2 /generic | |
parent | bd919c12a0d87ab9bf1bd86a114ed66898bbfcd1 (diff) | |
download | tk-155b295553449458a4eb8bd2a3ab1f12df26cf3b.zip tk-155b295553449458a4eb8bd2a3ab1f12df26cf3b.tar.gz tk-155b295553449458a4eb8bd2a3ab1f12df26cf3b.tar.bz2 |
Change TICK_VALUES_DISPLAY_ACCURACY for the more correct word TICK_VALUES_DISPLAY_PRECISION
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 c5cdaff..b28b08d 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_ACCURACY intervals + * TICK_VALUES_DISPLAY_PRECISION intervals */ while (MaxTickRoundingError(scalePtr, pow(10, leastSigDigit)) - > fabs(TICK_VALUES_DISPLAY_ACCURACY * scalePtr->tickInterval)) { + > fabs(TICK_VALUES_DISPLAY_PRECISION * scalePtr->tickInterval)) { --leastSigDigit; } numDigits = 1 + mostSigDigit - leastSigDigit; diff --git a/generic/tkScale.h b/generic/tkScale.h index e68b786..b307aa2 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_ACCURACY 0.2 +#define TICK_VALUES_DISPLAY_PRECISION 0.2 /* * Declaration of procedures used in the implementation of the scale widget. |