summaryrefslogtreecommitdiffstats
path: root/generic/tkTextMark.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkTextMark.c')
-rw-r--r--generic/tkTextMark.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tkTextMark.c b/generic/tkTextMark.c
index 026ca33..9729449 100644
--- a/generic/tkTextMark.c
+++ b/generic/tkTextMark.c
@@ -432,11 +432,11 @@ 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;
+ start = TkBTreeLinesTo(NULL, textPtr->start);
+ TkTextMakeByteIndex(textPtr->sharedTextPtr->tree, NULL, start, 0,
+ &index);
+ if (TkTextIndexCmp(indexPtr, &index) < 0) {
+ return TCL_ERROR;
}
}
if (textPtr->end != NULL) {