summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvText.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-01-22 08:58:46 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-01-22 08:58:46 (GMT)
commit452161e760ca95d60fbbf4b8e3547102ef2b035d (patch)
tree483ce24a68b633ea0dbc6b282d550f31e07dbe6f /generic/tkCanvText.c
parent81ac88e72f468bd35eb1eb30d6947b6feb0af48d (diff)
parente64d38045b3d09b51e7f212794155a7df8b0bc1f (diff)
downloadtk-452161e760ca95d60fbbf4b8e3547102ef2b035d.zip
tk-452161e760ca95d60fbbf4b8e3547102ef2b035d.tar.gz
tk-452161e760ca95d60fbbf4b8e3547102ef2b035d.tar.bz2
Merge 8.7
Diffstat (limited to 'generic/tkCanvText.c')
-rw-r--r--generic/tkCanvText.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/generic/tkCanvText.c b/generic/tkCanvText.c
index 3adb43d..2407918 100644
--- a/generic/tkCanvText.c
+++ b/generic/tkCanvText.c
@@ -1523,11 +1523,6 @@ GetTextIndex(
*indexPtr = Tk_PointToChar(textPtr->textLayout,
(int) (x*cs - y*s), (int) (y*cs + x*s));
} else {
- /*
- * Some of the paths here leave messages in the interp's result, so we
- * have to clear it out before storing our own message.
- */
-
badIndex:
Tcl_SetObjResult(interp, Tcl_ObjPrintf("bad index \"%s\"", string));
Tcl_SetErrorCode(interp, "TK", "CANVAS", "ITEM_INDEX", "TEXT", NULL);