summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorculler <culler>2024-07-12 16:35:29 (GMT)
committerculler <culler>2024-07-12 16:35:29 (GMT)
commit647e17558e1634fb15bc5982a03e0ee50c46ee53 (patch)
tree446617f5b8a6de6fc9c94c4ee0d23e3fb88c3e50
parent308c4fa18ac164fca1522a81c09760cd3e417799 (diff)
downloadtk-647e17558e1634fb15bc5982a03e0ee50c46ee53.zip
tk-647e17558e1634fb15bc5982a03e0ee50c46ee53.tar.gz
tk-647e17558e1634fb15bc5982a03e0ee50c46ee53.tar.bz2
Make the tk scrollbar set borderwidth to 0 if a negative value is requested. See [5f739d2253]
-rw-r--r--generic/tkScrollbar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tkScrollbar.c b/generic/tkScrollbar.c
index 5f03fee..dd2ee35 100644
--- a/generic/tkScrollbar.c
+++ b/generic/tkScrollbar.c
@@ -490,10 +490,12 @@ ConfigureScrollbar(
if (scrollPtr->highlightWidth < 0) {
scrollPtr->highlightWidth = 0;
}
+ if (scrollPtr->borderWidth < 0) {
+ scrollPtr->borderWidth = 0;
+ }
if (scrollPtr->elementBorderWidth < 0) {
scrollPtr->elementBorderWidth = INT_MIN;
}
-
/*
* Configure platform specific options.
*/