diff options
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; |