diff options
author | pspjuth <pspjuth@noemail.net> | 2002-06-20 21:18:32 (GMT) |
---|---|---|
committer | pspjuth <pspjuth@noemail.net> | 2002-06-20 21:18:32 (GMT) |
commit | d6c262e7a0218bf88b6632d5c1b68747398d8011 (patch) | |
tree | 4f71ab9042c4b871db2adbb6618a4f29d517ea79 /generic/tkGrid.c | |
parent | f2dd9733b2a0cfeadab98bb48502c3dcf3ec34b7 (diff) | |
download | tk-d6c262e7a0218bf88b6632d5c1b68747398d8011.zip tk-d6c262e7a0218bf88b6632d5c1b68747398d8011.tar.gz tk-d6c262e7a0218bf88b6632d5c1b68747398d8011.tar.bz2 |
Corrected the test for grid propagate change. [Bug #571433]
FossilOrigin-Name: 98d6cad79c2e09eae349322c87c6cf57a358505f
Diffstat (limited to 'generic/tkGrid.c')
-rw-r--r-- | generic/tkGrid.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/generic/tkGrid.c b/generic/tkGrid.c index 48db44e..21a8e56 100644 --- a/generic/tkGrid.c +++ b/generic/tkGrid.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkGrid.c,v 1.21 2002/06/14 22:25:12 jenglish Exp $ + * RCS: @(#) $Id: tkGrid.c,v 1.22 2002/06/20 21:18:32 pspjuth Exp $ */ #include "tkInt.h" @@ -767,7 +767,7 @@ GridPropagateCommand(tkwin, interp, objc, objv) { Tk_Window master; Gridder *masterPtr; - int propagate; + int propagate, old; if (objc > 4) { Tcl_WrongNumArgs(interp, 2, objv, "window ?boolean?"); @@ -789,7 +789,8 @@ GridPropagateCommand(tkwin, interp, objc, objv) /* Only request a relayout if the propagation bit changes */ - if ((!propagate) ^ (masterPtr->flags&DONT_PROPAGATE)) { + old = !(masterPtr->flags & DONT_PROPAGATE); + if (propagate != old) { if (propagate) { masterPtr->flags &= ~DONT_PROPAGATE; } else { |