diff options
author | uid38226 <uid38226> | 2002-01-31 21:05:27 (GMT) |
---|---|---|
committer | uid38226 <uid38226> | 2002-01-31 21:05:27 (GMT) |
commit | e51b469b07e385f8d952e1e83fbbb98be5a71a79 (patch) | |
tree | 2ee8b3870e91409b4a2075e48216b96a0c9d60e8 /generic | |
parent | 9ba6d7b21fed9e61a8e0bf74932aea176849a7f7 (diff) | |
download | tk-e51b469b07e385f8d952e1e83fbbb98be5a71a79.zip tk-e51b469b07e385f8d952e1e83fbbb98be5a71a79.tar.gz tk-e51b469b07e385f8d952e1e83fbbb98be5a71a79.tar.bz2 |
Correct and test for logic error when cloning menus. Bug 508988
Diffstat (limited to 'generic')
-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); |