summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.travis.yml10
-rw-r--r--generic/tkScale.c10
2 files changed, 14 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index e4662b3..7c6de08 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -209,6 +209,11 @@ jobs:
- name: "macOS/Clang/Xcode 10/Shared"
os: osx
osx_image: xcode10.3
+ addons:
+ homebrew:
+ packages:
+ - tcl-tk
+ update: true
env:
- BUILD_DIR=unix
- CFGOPT="--with-tcl=/usr/local/opt/tcl-tk/lib --enable-aqua CFLAGS=-I/usr/local/opt/tcl-tk/include CPPFLAGS=-mmacosx-version-min=10.14"
@@ -218,6 +223,11 @@ jobs:
- name: "macOS/Clang/Xcode 9/Shared"
os: osx
osx_image: xcode9.4
+ addons:
+ homebrew:
+ packages:
+ - tcl-tk
+ update: true
env:
- BUILD_DIR=unix
- CFGOPT="--with-tcl=/usr/local/opt/tcl-tk/lib --enable-aqua CFLAGS=-I/usr/local/opt/tcl-tk/include CPPFLAGS=-mmacosx-version-min=10.13"
diff --git a/generic/tkScale.c b/generic/tkScale.c
index affea94..d26f4e0 100644
--- a/generic/tkScale.c
+++ b/generic/tkScale.c
@@ -659,13 +659,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);