summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2019-01-05 20:55:12 (GMT)
committerfvogel <fvogelnew1@free.fr>2019-01-05 20:55:12 (GMT)
commit79864b3cecd15cecaaeeded2d301de7b1d96511c (patch)
tree1827f7cee7dd565dae2ae4386ce8d9115c1af774 /unix
parent9997531222f9a5ea6e8da18ca5eb0241f06c0c61 (diff)
downloadtk-79864b3cecd15cecaaeeded2d301de7b1d96511c.zip
tk-79864b3cecd15cecaaeeded2d301de7b1d96511c.tar.gz
tk-79864b3cecd15cecaaeeded2d301de7b1d96511c.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;