summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2004-06-29 23:21:42 (GMT)
committerhobbs <hobbs@noemail.net>2004-06-29 23:21:42 (GMT)
commit76c41cfb5c711767328c52c9c9419d70acd98898 (patch)
treec4b6b7b606975544a40d79f67d317ad8d93c9398 /generic
parent123ec78a315e252cb62f762f9bee042249d4ccdf (diff)
downloadtk-76c41cfb5c711767328c52c9c9419d70acd98898.zip
tk-76c41cfb5c711767328c52c9c9419d70acd98898.tar.gz
tk-76c41cfb5c711767328c52c9c9419d70acd98898.tar.bz2
* generic/tkCmds.c (Tk_WinfoObjCmd): refetch interp result obj for
'winfo id' as it can change when making the window exist. FossilOrigin-Name: dbbde75a477dd1dd770df89bf3169e47e7d84a00
Diffstat (limited to 'generic')
-rw-r--r--generic/tkCmds.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tkCmds.c b/generic/tkCmds.c
index 39aaf06..f664b8c 100644
--- a/generic/tkCmds.c
+++ b/generic/tkCmds.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkCmds.c,v 1.32 2004/03/17 18:15:43 das Exp $
+ * RCS: @(#) $Id: tkCmds.c,v 1.33 2004/06/29 23:21:43 hobbs Exp $
*/
#include "tkPort.h"
@@ -1241,6 +1241,10 @@ Tk_WinfoObjCmd(clientData, interp, objc, objv)
Tk_MakeWindowExist(tkwin);
TkpPrintWindowId(buf, Tk_WindowId(tkwin));
+ /*
+ * interp result may have changed, refetch it
+ */
+ resultPtr = Tcl_GetObjResult(interp);
Tcl_SetStringObj(resultPtr, buf, -1);
break;
}