From 886bb0639e585a6759c763f5d54a6d5f3986c525 Mon Sep 17 00:00:00 2001 From: chengyemao Date: Mon, 10 Jan 2005 04:15:02 +0000 Subject: Correction of handling the return value of TkpUseWindow --- generic/tkFrame.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generic/tkFrame.c b/generic/tkFrame.c index b27b454..d567815 100644 --- a/generic/tkFrame.c +++ b/generic/tkFrame.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: tkFrame.c,v 1.19 2005/01/09 18:28:05 chengyemao Exp $ + * RCS: @(#) $Id: tkFrame.c,v 1.20 2005/01/10 04:15:02 chengyemao Exp $ */ #include "default.h" @@ -805,7 +805,7 @@ FrameWidgetObjCmd(clientData, interp, objc, objv) && (strncmp(arg, "-visual", length) == 0))) { if(c == 'u') { CONST char*string = Tcl_GetString(objv[i+1]); - if(TCL_OK == TkpUseWindow(interp, framePtr->tkwin, string)) { + if(TCL_OK != TkpUseWindow(interp, framePtr->tkwin, string)) { result = TCL_ERROR; goto done; } -- cgit v0.12