From 155b295553449458a4eb8bd2a3ab1f12df26cf3b Mon Sep 17 00:00:00 2001 From: fvogel Date: Tue, 26 Mar 2019 07:14:28 +0000 Subject: Change TICK_VALUES_DISPLAY_ACCURACY for the more correct word TICK_VALUES_DISPLAY_PRECISION --- doc/scale.n | 4 +++- generic/tkScale.c | 4 ++-- generic/tkScale.h | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/scale.n b/doc/scale.n index b1f1981..c5f22b4 100644 --- a/doc/scale.n +++ b/doc/scale.n @@ -78,7 +78,9 @@ specified by the \fB\-activebackground\fR option. .OP \-tickinterval tickInterval TickInterval Must be a real value. Determines the spacing between numerical -tick marks displayed below or to the left of the slider. The values will all be displayed with the same number of decimal places, which will be enough to ensure they are all accurate to within 20% of a tick interval. +tick marks displayed below or to the left of the slider. The values will all +be displayed with the same number of decimal places, which will be enough to +ensure they are all precise to within 20% of a tick interval. If 0, no tick marks will be displayed. .OP \-to to To Specifies a real value corresponding 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. -- cgit v0.12