From 7873bc6c3b89bbcc6e11383ce9e17ae2b71dcb57 Mon Sep 17 00:00:00 2001 From: dkf Date: Tue, 11 Jan 2005 16:05:16 +0000 Subject: D'oh! --- generic/tkObj.c | 4 ++-- 1 file 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; -- cgit v0.12