summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvLine.c
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2012-07-30 07:46:19 (GMT)
committerdkf <dkf@noemail.net>2012-07-30 07:46:19 (GMT)
commit2112a76a64dc50c4e3dd1605bbf24cc0336c9987 (patch)
tree7e57204b12abc171ad343d007edecaf1b17cdf09 /generic/tkCanvLine.c
parent24ad994d9e222210ff92f2ed12398a7178f55b34 (diff)
downloadtk-2112a76a64dc50c4e3dd1605bbf24cc0336c9987.zip
tk-2112a76a64dc50c4e3dd1605bbf24cc0336c9987.tar.gz
tk-2112a76a64dc50c4e3dd1605bbf24cc0336c9987.tar.bz2
Working towards making the error codes more consistent.
FossilOrigin-Name: 45327b3d6fc9c1c7c415e8c25e98639bed019d84
Diffstat (limited to 'generic/tkCanvLine.c')
-rw-r--r--generic/tkCanvLine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkCanvLine.c b/generic/tkCanvLine.c
index ce51759..9d68c37 100644
--- a/generic/tkCanvLine.c
+++ b/generic/tkCanvLine.c
@@ -1800,7 +1800,7 @@ GetLineIndex(
badIndex:
Tcl_ResetResult(interp);
Tcl_SetObjResult(interp, Tcl_ObjPrintf("bad index \"%s\"", string));
- Tcl_SetErrorCode(interp, "TK", "CANVAS", "ITEMINDEX", "LINE", NULL);
+ Tcl_SetErrorCode(interp, "TK", "CANVAS", "ITEM_INDEX", "LINE", NULL);
return TCL_ERROR;
}
@@ -1918,7 +1918,7 @@ ParseArrowShape(
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"bad arrow shape \"%s\": must be list with three numbers",
value));
- Tcl_SetErrorCode(interp, "TK", "CANVAS", "ARROWSHAPE", NULL);
+ Tcl_SetErrorCode(interp, "TK", "CANVAS", "ARROW_SHAPE", NULL);
if (argv != NULL) {
ckfree(argv);
}
@@ -2433,7 +2433,7 @@ LineToPostscript(
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;