diff options
author | dkf <dkf@noemail.net> | 2005-01-11 16:05:16 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2005-01-11 16:05:16 (GMT) |
commit | f1d2c13497501a662231ea433c3bbbadda452c06 (patch) | |
tree | ae5fdff216e2de06fe0d143f4f42af0ca71f0b36 /generic/tkObj.c | |
parent | ca58cdf2d57ad7b717be3350e544e378ee3f86e7 (diff) | |
download | tk-f1d2c13497501a662231ea433c3bbbadda452c06.zip tk-f1d2c13497501a662231ea433c3bbbadda452c06.tar.gz tk-f1d2c13497501a662231ea433c3bbbadda452c06.tar.bz2 |
D'oh!
FossilOrigin-Name: d787ec4e1b5616300301fd5c3521805620e1e214
Diffstat (limited to 'generic/tkObj.c')
-rw-r--r-- | generic/tkObj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkObj.c b/generic/tkObj.c index 92d9443..83faa27 100644 --- a/generic/tkObj.c +++ b/generic/tkObj.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: tkObj.c,v 1.8.2.1 2005/01/11 10:46:39 dkf Exp $ + * RCS: @(#) $Id: tkObj.c,v 1.8.2.2 2005/01/11 16:05:16 dkf Exp $ */ #include "tkInt.h" @@ -887,7 +887,7 @@ TkParsePadAmount(interp, tkwin, specObj, halfPtr, allPtr) if (Tcl_ListObjGetElements(interp, specObj, &objc, &objv) != TCL_OK) { return TCL_ERROR; } - if (objc != 1 || objc != 2) { + if (objc != 1 && objc != 2) { Tcl_AppendResult(interp, "wrong number of parts to pad specification", NULL); return TCL_ERROR; |