diff options
author | chengyemao <chengyemao> | 2005-01-09 06:59:20 (GMT) |
---|---|---|
committer | chengyemao <chengyemao> | 2005-01-09 06:59:20 (GMT) |
commit | ca48dcde173803f4b3dee3224432cc96b1751c15 (patch) | |
tree | c7262b658ce973b57395ac93be237c5eea8c2317 /win/tkWinMenu.c | |
parent | 0652d44b772906ffe9612e8727bb45065446a516 (diff) | |
download | tk-ca48dcde173803f4b3dee3224432cc96b1751c15.zip tk-ca48dcde173803f4b3dee3224432cc96b1751c15.tar.gz tk-ca48dcde173803f4b3dee3224432cc96b1751c15.tar.bz2 |
bug fix [637653]
Diffstat (limited to 'win/tkWinMenu.c')
-rw-r--r-- | win/tkWinMenu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tkWinMenu.c b/win/tkWinMenu.c index 425e8e9..d7f5d48 100644 --- a/win/tkWinMenu.c +++ b/win/tkWinMenu.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinMenu.c,v 1.39 2005/01/09 00:26:59 chengyemao Exp $ + * RCS: @(#) $Id: tkWinMenu.c,v 1.40 2005/01/09 06:59:20 chengyemao Exp $ */ #define OEMRESOURCE @@ -1142,7 +1142,7 @@ TkWinHandleMenuEvent(phwnd, pMessage, pwParam, plParam, plResult) case WM_MEASUREITEM: { LPMEASUREITEMSTRUCT itemPtr = (LPMEASUREITEMSTRUCT) *plParam; - if (itemPtr != NULL) { + if (itemPtr != NULL && tsdPtr->modalMenuPtr != NULL) { mePtr = (TkMenuEntry *) itemPtr->itemData; menuPtr = mePtr->menuPtr; @@ -1171,7 +1171,7 @@ TkWinHandleMenuEvent(phwnd, pMessage, pwParam, plParam, plResult) Tk_FontMetrics fontMetrics; int drawArrow = 0; - if (itemPtr != NULL) { + if (itemPtr != NULL && tsdPtr->modalMenuPtr != NULL) { Tk_Font tkfont; mePtr = (TkMenuEntry *) itemPtr->itemData; |