summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2015-02-06 16:03:10 (GMT)
committerdgp@users.sourceforge.net <dgp>2015-02-06 16:03:10 (GMT)
commit472dbf8ac966d002600059d8537b990f1d60f9af (patch)
tree0f3c90075c71c9d625d0e87aa372e58eeca4e432
parentc8861abdbb178764cc393e7c503fdbe9152f63b9 (diff)
downloadtk-472dbf8ac966d002600059d8537b990f1d60f9af.zip
tk-472dbf8ac966d002600059d8537b990f1d60f9af.tar.gz
tk-472dbf8ac966d002600059d8537b990f1d60f9af.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;
}
/*