summaryrefslogtreecommitdiffstats
path: root/generic/tkTextIndex.c
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2015-02-06 16:03:10 (GMT)
committerdgp <dgp@noemail.net>2015-02-06 16:03:10 (GMT)
commitfcfdc36f4c0ddebf069145fcc1c1e58eee3cbf3a (patch)
treef9080c89f911cb1e717447c51c1f7815414ae817 /generic/tkTextIndex.c
parentbed6e1fde2e9ecad32174399da4745a4275adc50 (diff)
downloadtk-fcfdc36f4c0ddebf069145fcc1c1e58eee3cbf3a.zip
tk-fcfdc36f4c0ddebf069145fcc1c1e58eee3cbf3a.tar.gz
tk-fcfdc36f4c0ddebf069145fcc1c1e58eee3cbf3a.tar.bz2
[c9535cd7ce] GetIndex() failed to route all successful exits through code
that writes a result through the canCachePtr. FossilOrigin-Name: cd8ed3e9f02b8d92efbcea08d6c271785ae9297d
Diffstat (limited to 'generic/tkTextIndex.c')
-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;
}
/*