From 647e17558e1634fb15bc5982a03e0ee50c46ee53 Mon Sep 17 00:00:00 2001 From: culler Date: Fri, 12 Jul 2024 16:35:29 +0000 Subject: Make the tk scrollbar set borderwidth to 0 if a negative value is requested. See [5f739d2253] --- generic/tkScrollbar.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. */ -- cgit v0.12