diff options
-rw-r--r-- | generic/tkScale.c | 7 |
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); |