summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2014-11-23 14:09:09 (GMT)
committerfvogel <fvogelnew1@free.fr>2014-11-23 14:09:09 (GMT)
commitf98600555ab58fe42e94755af92f936152cbda25 (patch)
tree1c0fb793de32e7adf8eddcffb276da16ce5c22c6 /generic
parentdd320ac02249bc0c6455314183ab93b98e32de52 (diff)
parent34b765f14f011c5b1d1f836997b5bfbcf89b6b1e (diff)
downloadtk-f98600555ab58fe42e94755af92f936152cbda25.zip
tk-f98600555ab58fe42e94755af92f936152cbda25.tar.gz
tk-f98600555ab58fe42e94755af92f936152cbda25.tar.bz2
Merged from branch bug-7703f947aa
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTextDisp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index d773fff..eb3c57a 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -4798,8 +4798,8 @@ TextRedrawTag(
endIndexPtr = curIndexPtr;
}
endPtr = FindDLine(dlPtr, endIndexPtr);
- if ((endPtr != NULL) && (endPtr->index.linePtr == endIndexPtr->linePtr)
- && (endPtr->index.byteIndex < endIndexPtr->byteIndex)) {
+ if ((endPtr != NULL)
+ && (TkTextIndexCmp(&endPtr->index,endIndexPtr) < 0)) {
endPtr = endPtr->nextPtr;
}