summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2019-01-26 13:30:44 (GMT)
committerfvogel <fvogelnew1@free.fr>2019-01-26 13:30:44 (GMT)
commit303f11157504fc05934fb107a61f3c551f6e3684 (patch)
treea478ad5fefebb9e03f4fb3a04040ca2d2bf5b439 /unix
parent3be37d2e475c04c88fe192c47cc5fcef06024aab (diff)
parentcff021b2dc7bf601b37714ae36bfa4fd510dbd1d (diff)
downloadtk-303f11157504fc05934fb107a61f3c551f6e3684.zip
tk-303f11157504fc05934fb107a61f3c551f6e3684.tar.gz
tk-303f11157504fc05934fb107a61f3c551f6e3684.tar.bz2
Fix [3003895fff] and [1899040fff]: TkRoundToResolution doesn't account for -from
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixScale.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tkUnixScale.c b/unix/tkUnixScale.c
index 8f88018..2009288 100644
--- a/unix/tkUnixScale.c
+++ b/unix/tkUnixScale.c
@@ -150,11 +150,11 @@ DisplayVerticalScale(
for (tickValue = scalePtr->fromValue; ;
tickValue += tickInterval) {
/*
- * The TkRoundToResolution call gets rid of accumulated
+ * The TkRoundValueToResolution call gets rid of accumulated
* round-off errors, if any.
*/
- tickValue = TkRoundToResolution(scalePtr, tickValue);
+ tickValue = TkRoundValueToResolution(scalePtr, tickValue);
if (scalePtr->toValue >= scalePtr->fromValue) {
if (tickValue > scalePtr->toValue) {
break;
@@ -370,11 +370,11 @@ DisplayHorizontalScale(
for (tickValue = scalePtr->fromValue; ;
tickValue += tickInterval) {
/*
- * The TkRoundToResolution call gets rid of accumulated
+ * The TkRoundValueToResolution call gets rid of accumulated
* round-off errors, if any.
*/
- tickValue = TkRoundToResolution(scalePtr, tickValue);
+ tickValue = TkRoundValueToResolution(scalePtr, tickValue);
if (scalePtr->toValue >= scalePtr->fromValue) {
if (tickValue > scalePtr->toValue) {
break;