summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2019-03-28 19:34:20 (GMT)
committerfvogel <fvogelnew1@free.fr>2019-03-28 19:34:20 (GMT)
commitdc37e2284b4baccb9a8e7220604bc667d7050129 (patch)
treeb037286bb5f4f01a4a2172cff4f2ba8db25d4502 /generic
parent155b295553449458a4eb8bd2a3ab1f12df26cf3b (diff)
downloadtk-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.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 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.