summaryrefslogtreecommitdiffstats
path: root/generic/tkImgBmap.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-07-30 07:46:19 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-07-30 07:46:19 (GMT)
commite64497a5bc67ff3b3f39e57700c650c6e7962eea (patch)
tree7e57204b12abc171ad343d007edecaf1b17cdf09 /generic/tkImgBmap.c
parent488df4eea56d73f306245cf3cebedcc0e25038b6 (diff)
downloadtk-e64497a5bc67ff3b3f39e57700c650c6e7962eea.zip
tk-e64497a5bc67ff3b3f39e57700c650c6e7962eea.tar.gz
tk-e64497a5bc67ff3b3f39e57700c650c6e7962eea.tar.bz2
Working towards making the error codes more consistent.
Diffstat (limited to 'generic/tkImgBmap.c')
-rw-r--r--generic/tkImgBmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkImgBmap.c b/generic/tkImgBmap.c
index f2558db..f57db55 100644
--- a/generic/tkImgBmap.c
+++ b/generic/tkImgBmap.c
@@ -1224,7 +1224,7 @@ ImgBmapPostscript(
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"unable to generate postscript for bitmaps larger than 60000"
" pixels", -1));
- Tcl_SetErrorCode(interp, "TK", "IMAGE", "BITMAP", "OUTSIZE", NULL);
+ Tcl_SetErrorCode(interp, "TK", "CANVAS", "PS", "MEMLIMIT", NULL);
return TCL_ERROR;
}
@@ -1304,7 +1304,7 @@ ImgBmapPostscript(
*/
(void) Tcl_RestoreInterpState(interp, interpState);
- Tcl_AppendResult(interp, Tcl_GetString(psObj), NULL);
+ Tcl_AppendObjToObj(Tcl_GetObjResult(interp), psObj);
Tcl_DecrRefCount(psObj);
return TCL_OK;