summaryrefslogtreecommitdiffstats
path: root/generic/tkTextIndex.c
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2008-10-05 18:22:21 (GMT)
committerdkf <dkf@noemail.net>2008-10-05 18:22:21 (GMT)
commite1ab5e827179b612365879add339d9300c2a7f78 (patch)
tree57b5f8cd5ff8ef866da62495bc435946f4655c50 /generic/tkTextIndex.c
parent6d8f04164aad0090c7d328ff8f1f8ae0e0f3fc16 (diff)
downloadtk-e1ab5e827179b612365879add339d9300c2a7f78.zip
tk-e1ab5e827179b612365879add339d9300c2a7f78.tar.gz
tk-e1ab5e827179b612365879add339d9300c2a7f78.tar.bz2
Greatly clean up Tk's handling of the writability of the Tcl result object.
FossilOrigin-Name: a83341a36174d2059bc339dea19260a38eda5a01
Diffstat (limited to 'generic/tkTextIndex.c')
-rw-r--r--generic/tkTextIndex.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/tkTextIndex.c b/generic/tkTextIndex.c
index e1d58e8..a0cce5c 100644
--- a/generic/tkTextIndex.c
+++ b/generic/tkTextIndex.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkTextIndex.c,v 1.29 2008/04/27 22:38:58 dkf Exp $
+ * RCS: @(#) $Id: tkTextIndex.c,v 1.30 2008/10/05 18:22:22 dkf Exp $
*/
#include "default.h"
@@ -145,9 +145,8 @@ SetTextIndexFromAny(
Tcl_Interp *interp, /* Used for error reporting if not NULL. */
Tcl_Obj *objPtr) /* The object to convert. */
{
- Tcl_AppendToObj(Tcl_GetObjResult(interp),
- "can't convert value to textindex except via TkTextGetIndexFromObj API",
- -1);
+ Tcl_AppendResult(interp, "can't convert value to textindex except "
+ "via TkTextGetIndexFromObj API", -1);
return TCL_ERROR;
}