summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/tkScale.c4
-rw-r--r--generic/tkScale.h2
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.