diff options
author | dgp <dgp@users.sourceforge.net> | 2020-09-15 16:57:02 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2020-09-15 16:57:02 (GMT) |
commit | 7b0e937f9ff083f35896d0d13cf90d618812de49 (patch) | |
tree | de7f5dad34e664debf6ad3b48e2deafd20741a11 /generic/tkScale.c | |
parent | af244231877a2b478b9fb0b0481621e1c12fc561 (diff) | |
parent | c40f0f6cefb57728ba9162a8509918ae31fd2210 (diff) | |
download | tk-7b0e937f9ff083f35896d0d13cf90d618812de49.zip tk-7b0e937f9ff083f35896d0d13cf90d618812de49.tar.gz tk-7b0e937f9ff083f35896d0d13cf90d618812de49.tar.bz2 |
merge 8.6
Diffstat (limited to 'generic/tkScale.c')
-rw-r--r-- | generic/tkScale.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/generic/tkScale.c b/generic/tkScale.c index 5957b00..825f661 100644 --- a/generic/tkScale.c +++ b/generic/tkScale.c @@ -658,13 +658,11 @@ ConfigureScale( } } - /* - * Several options need special processing, such as parsing the - * orientation and creating GCs. - */ + /* + * The fromValue shall not be rounded to the resolution, but the + * toValue and tickInterval do. + */ - scalePtr->fromValue = TkRoundValueToResolution(scalePtr, - scalePtr->fromValue); scalePtr->toValue = TkRoundValueToResolution(scalePtr, scalePtr->toValue); scalePtr->tickInterval = TkRoundIntervalToResolution(scalePtr, scalePtr->tickInterval); |