summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvWind.c
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2012-07-30 07:46:19 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2012-07-30 07:46:19 (GMT)
commit681f4133bc1ab9f99b6fb13d09774aaea60dfca6 (patch)
tree7e57204b12abc171ad343d007edecaf1b17cdf09 /generic/tkCanvWind.c
parent184e0369949378636af14b12478910f033f8e14a (diff)
downloadtk-681f4133bc1ab9f99b6fb13d09774aaea60dfca6.zip
tk-681f4133bc1ab9f99b6fb13d09774aaea60dfca6.tar.gz
tk-681f4133bc1ab9f99b6fb13d09774aaea60dfca6.tar.bz2
Working towards making the error codes more consistent.
Diffstat (limited to 'generic/tkCanvWind.c')
-rw-r--r--generic/tkCanvWind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkCanvWind.c b/generic/tkCanvWind.c
index 7ca7c9d..f183b35 100644
--- a/generic/tkCanvWind.c
+++ b/generic/tkCanvWind.c
@@ -904,7 +904,7 @@ CanvasPsWindow(
done:
if (result == TCL_OK) {
(void) Tcl_RestoreInterpState(interp, interpState);
- Tcl_AppendResult(interp, Tcl_GetString(psObj), NULL);
+ Tcl_AppendObjToObj(Tcl_GetObjResult(interp), psObj);
} else {
Tcl_DiscardInterpState(interpState);
}