summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.
*/