diff options
author | fvogel <fvogelnew1@free.fr> | 2019-01-26 13:31:01 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2019-01-26 13:31:01 (GMT) |
commit | 591f68cb382525b72664c6fecaab87742b6cc87a (patch) | |
tree | b742c68f3d0f63f53e4e61ec356f91f10f4b1def /unix/tkUnixScale.c | |
parent | 08e04d973df4cca8b51d97e48491efbcb421ba3c (diff) | |
parent | 303f11157504fc05934fb107a61f3c551f6e3684 (diff) | |
download | tk-591f68cb382525b72664c6fecaab87742b6cc87a.zip tk-591f68cb382525b72664c6fecaab87742b6cc87a.tar.gz tk-591f68cb382525b72664c6fecaab87742b6cc87a.tar.bz2 |
Fix [3003895fff] and [1899040fff]: TkRoundToResolution doesn't account for -from
Diffstat (limited to 'unix/tkUnixScale.c')
-rw-r--r-- | unix/tkUnixScale.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tkUnixScale.c b/unix/tkUnixScale.c index d0208b7..8427cfe 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; |