summaryrefslogtreecommitdiffstats
path: root/generic/tkScale.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2020-08-17 21:17:33 (GMT)
committerfvogel <fvogelnew1@free.fr>2020-08-17 21:17:33 (GMT)
commit4ef6f9e85ea2f8c07537e7a7e5be419c37eceb31 (patch)
tree2a7d80de8c543d06a6ec14efdb3542c4c5d81b32 /generic/tkScale.c
parentbf7475f9e1b78233c97014dcdb7a1c11c34ea4d9 (diff)
parentb60b0d50f5e96a40b302de1be13f383e98148aec (diff)
downloadtk-4ef6f9e85ea2f8c07537e7a7e5be419c37eceb31.zip
tk-4ef6f9e85ea2f8c07537e7a7e5be419c37eceb31.tar.gz
tk-4ef6f9e85ea2f8c07537e7a7e5be419c37eceb31.tar.bz2
merge core-8-6-branch
Diffstat (limited to 'generic/tkScale.c')
-rw-r--r--generic/tkScale.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/generic/tkScale.c b/generic/tkScale.c
index affea94..d26f4e0 100644
--- a/generic/tkScale.c
+++ b/generic/tkScale.c
@@ -659,13 +659,11 @@ ConfigureScale(
}
}
- /*
- * Several options need special processing, such as parsing the
- * orientation and creating GCs.
- */
+ /*
+ * The fromValue shall not be rounded to the resolution, but the
+ * toValue and tickInterval do.
+ */
- scalePtr->fromValue = TkRoundValueToResolution(scalePtr,
- scalePtr->fromValue);
scalePtr->toValue = TkRoundValueToResolution(scalePtr, scalePtr->toValue);
scalePtr->tickInterval = TkRoundIntervalToResolution(scalePtr,
scalePtr->tickInterval);