summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorchengyemao <chengyemao>2005-01-10 04:15:02 (GMT)
committerchengyemao <chengyemao>2005-01-10 04:15:02 (GMT)
commit886bb0639e585a6759c763f5d54a6d5f3986c525 (patch)
treedb6f4dd0f13ea139bfb47c34915d6dbf4ee6591a /generic
parentd1b7816f14d469b4a8f8b0aa68d7338368b5ba59 (diff)
downloadtk-886bb0639e585a6759c763f5d54a6d5f3986c525.zip
tk-886bb0639e585a6759c763f5d54a6d5f3986c525.tar.gz
tk-886bb0639e585a6759c763f5d54a6d5f3986c525.tar.bz2
Correction of handling the return value of TkpUseWindow
Diffstat (limited to 'generic')
-rw-r--r--generic/tkFrame.c4
1 files 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;
}