summaryrefslogtreecommitdiffstats
path: root/generic/tkTextMark.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkTextMark.c')
-rw-r--r--generic/tkTextMark.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkTextMark.c b/generic/tkTextMark.c
index 0ffede8..a9d709c 100644
--- a/generic/tkTextMark.c
+++ b/generic/tkTextMark.c
@@ -431,10 +431,10 @@ TkTextMarkNameToIndex(
if (textPtr->start != NULL) {
start = TkBTreeLinesTo(NULL, textPtr->start);
- TkTextMakeByteIndex(textPtr->sharedTextPtr->tree, NULL, start, 0,
- &index);
- if (TkTextIndexCmp(indexPtr, &index) < 0) {
- return TCL_ERROR;
+ TkTextMakeByteIndex(textPtr->sharedTextPtr->tree, NULL, start, 0,
+ &index);
+ if (TkTextIndexCmp(indexPtr, &index) < 0) {
+ return TCL_ERROR;
}
}
if (textPtr->end != NULL) {