summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2015-02-06 16:03:10 (GMT)
committerdgp <dgp@users.sourceforge.net>2015-02-06 16:03:10 (GMT)
commite9043031de3669be8a342498ecbc78cfdc67f054 (patch)
treef9080c89f911cb1e717447c51c1f7815414ae817
parent17b49653f33040bd6d6c6471e93c5a4b8140bb7a (diff)
downloadtk-e9043031de3669be8a342498ecbc78cfdc67f054.zip
tk-e9043031de3669be8a342498ecbc78cfdc67f054.tar.gz
tk-e9043031de3669be8a342498ecbc78cfdc67f054.tar.bz2
[c9535cd7ce] GetIndex() failed to route all successful exits through code
that writes a result through the canCachePtr.
-rw-r--r--generic/tkTextIndex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkTextIndex.c b/generic/tkTextIndex.c
index 70c94db..1b9d2a5 100644
--- a/generic/tkTextIndex.c
+++ b/generic/tkTextIndex.c
@@ -771,11 +771,11 @@ GetIndex(
}
if (TkTextWindowIndex(textPtr, string, indexPtr) != 0) {
- return TCL_OK;
+ goto done;
}
if (TkTextImageIndex(textPtr, string, indexPtr) != 0) {
- return TCL_OK;
+ goto done;
}
/*