summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2018-09-26 06:26:41 (GMT)
committerfvogel <fvogelnew1@free.fr>2018-09-26 06:26:41 (GMT)
commit667bf9fcb8bf6d59f6fb9c809e2cc37c2fd0164f (patch)
tree65ef02e4e7bfeb415a9bde342d1cd432810e105b /generic
parent1603ff2057cee3dfc3780d2ae7bb40d2f7ca1248 (diff)
downloadtk-667bf9fcb8bf6d59f6fb9c809e2cc37c2fd0164f.zip
tk-667bf9fcb8bf6d59f6fb9c809e2cc37c2fd0164f.tar.gz
tk-667bf9fcb8bf6d59f6fb9c809e2cc37c2fd0164f.tar.bz2
Fix [9658bc800c]: Right border calculated wrong in Tk menu if borderwidth != activeborderwidth. Patch provided by ingo_brunberg
Diffstat (limited to 'generic')
-rw-r--r--generic/tkMenuDraw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkMenuDraw.c b/generic/tkMenuDraw.c
index 1abe1c4..14a60ca 100644
--- a/generic/tkMenuDraw.c
+++ b/generic/tkMenuDraw.c
@@ -673,7 +673,7 @@ DisplayMenu(
} else {
if (mePtr->entryFlags & ENTRY_LAST_COLUMN) {
width = Tk_Width(menuPtr->tkwin) - mePtr->x
- - activeBorderWidth;
+ - borderWidth;
} else {
width = mePtr->width + borderWidth;
}