diff options
author | uid38226 <uid38226@noemail.net> | 2002-01-31 21:05:26 (GMT) |
---|---|---|
committer | uid38226 <uid38226@noemail.net> | 2002-01-31 21:05:26 (GMT) |
commit | 78fc8c9306251a4034e313e6b05cf3ec7b818433 (patch) | |
tree | 2ee8b3870e91409b4a2075e48216b96a0c9d60e8 /generic/tkMenu.c | |
parent | 352a1d4983e355b36d311f7b7fb7f4aac0bb2b1c (diff) | |
download | tk-78fc8c9306251a4034e313e6b05cf3ec7b818433.zip tk-78fc8c9306251a4034e313e6b05cf3ec7b818433.tar.gz tk-78fc8c9306251a4034e313e6b05cf3ec7b818433.tar.bz2 |
Correct and test for logic error when cloning menus. Bug 508988
FossilOrigin-Name: 3a8577ba18426c4a147663a893ef7a241c14100f
Diffstat (limited to 'generic/tkMenu.c')
-rw-r--r-- | generic/tkMenu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkMenu.c b/generic/tkMenu.c index 773b1e2..070c553 100644 --- a/generic/tkMenu.c +++ b/generic/tkMenu.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMenu.c,v 1.15 2002/01/25 21:09:37 dgp Exp $ + * RCS: @(#) $Id: tkMenu.c,v 1.16 2002/01/31 21:05:27 uid38226 Exp $ */ /* @@ -1998,7 +1998,7 @@ ConfigureMenuCloneEntries(interp, menuPtr, index, objc, objv) oldCascadeName = Tcl_GetStringFromObj(oldCascadePtr, NULL); cascadeEntryChanged = (strcmp(oldCascadeName, newCascadeName) - == 0); + != 0); } if (oldCascadePtr != NULL) { Tcl_DecrRefCount(oldCascadePtr); |