diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-07-30 07:46:19 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-07-30 07:46:19 (GMT) |
commit | ca5623894dd113cd5642189574cf6c104c64cad8 (patch) | |
tree | 7e57204b12abc171ad343d007edecaf1b17cdf09 /generic/tkCanvPoly.c | |
parent | 27b42b57118a651074b7f1fcc859fc4ae00090d0 (diff) | |
download | tk-ca5623894dd113cd5642189574cf6c104c64cad8.zip tk-ca5623894dd113cd5642189574cf6c104c64cad8.tar.gz tk-ca5623894dd113cd5642189574cf6c104c64cad8.tar.bz2 |
Working towards making the error codes more consistent.
Diffstat (limited to 'generic/tkCanvPoly.c')
-rw-r--r-- | generic/tkCanvPoly.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkCanvPoly.c b/generic/tkCanvPoly.c index 7e2834d..f8ea42b 100644 --- a/generic/tkCanvPoly.c +++ b/generic/tkCanvPoly.c @@ -1732,7 +1732,7 @@ GetPolygonIndex( badIndex: Tcl_SetObjResult(interp, Tcl_ObjPrintf("bad index \"%s\"", string)); - Tcl_SetErrorCode(interp, "TK", "CANVAS", "ITEMINDEX", "POLY", NULL); + Tcl_SetErrorCode(interp, "TK", "CANVAS", "ITEM_INDEX", "POLY", NULL); return TCL_ERROR; } @@ -1981,7 +1981,7 @@ PolygonToPostscript( done: (void) Tcl_RestoreInterpState(interp, interpState); - Tcl_AppendResult(interp, Tcl_GetString(psObj), NULL); + Tcl_AppendObjToObj(Tcl_GetObjResult(interp), psObj); Tcl_DecrRefCount(psObj); return TCL_OK; |