summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixMenu.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2018-09-29 09:35:07 (GMT)
committerfvogel <fvogelnew1@free.fr>2018-09-29 09:35:07 (GMT)
commitec60445b0cc27430b44a55eb513656838f6a6064 (patch)
treeecb41fb8b8b4e230cd7de355c49aacf8507ced8b /unix/tkUnixMenu.c
parent396d37035ef04c028b26e8329bc454353bf94299 (diff)
downloadtk-ec60445b0cc27430b44a55eb513656838f6a6064.zip
tk-ec60445b0cc27430b44a55eb513656838f6a6064.tar.gz
tk-ec60445b0cc27430b44a55eb513656838f6a6064.tar.bz2
Fix drawing of the tearoff entry
Diffstat (limited to 'unix/tkUnixMenu.c')
-rw-r--r--unix/tkUnixMenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tkUnixMenu.c b/unix/tkUnixMenu.c
index acee61f..e2bd6ad 100644
--- a/unix/tkUnixMenu.c
+++ b/unix/tkUnixMenu.c
@@ -1193,7 +1193,7 @@ DrawTearoffEntry(
points[0].y = y + height/2;
points[1].y = points[0].y;
segmentWidth = 6;
- maxX = width - 1;
+ maxX = x + width - 1;
border = Tk_Get3DBorderFromObj(menuPtr->tkwin, menuPtr->borderPtr);
while (points[0].x < maxX) {