summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2020-08-17 21:15:28 (GMT)
committerfvogel <fvogelnew1@free.fr>2020-08-17 21:15:28 (GMT)
commit69ce8a993ddb35eab3f80ad353471e43db57bd1e (patch)
treee7cf7e3c66f304d138da5c4ae1a9da4b7a5d56ce
parent4897bedc54dcd46849d2288ad10bf6b457dfcdad (diff)
downloadtk-69ce8a993ddb35eab3f80ad353471e43db57bd1e.zip
tk-69ce8a993ddb35eab3f80ad353471e43db57bd1e.tar.gz
tk-69ce8a993ddb35eab3f80ad353471e43db57bd1e.tar.bz2
Remove rounding of the fromValue to the resolution (which is a no-op).
-rw-r--r--generic/tkScale.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/generic/tkScale.c b/generic/tkScale.c
index fd2f870..c5237be 100644
--- a/generic/tkScale.c
+++ b/generic/tkScale.c
@@ -615,8 +615,11 @@ ConfigureScale(
}
}
- scalePtr->fromValue = TkRoundValueToResolution(scalePtr,
- scalePtr->fromValue);
+ /*
+ * The fromValue shall not be rounded to the resolution, but the
+ * toValue and tickInterval do.
+ */
+
scalePtr->toValue = TkRoundValueToResolution(scalePtr, scalePtr->toValue);
scalePtr->tickInterval = TkRoundIntervalToResolution(scalePtr,
scalePtr->tickInterval);