From 69ce8a993ddb35eab3f80ad353471e43db57bd1e Mon Sep 17 00:00:00 2001 From: fvogel Date: Mon, 17 Aug 2020 21:15:28 +0000 Subject: Remove rounding of the fromValue to the resolution (which is a no-op). --- generic/tkScale.c | 7 +++++-- 1 file 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); -- cgit v0.12