summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2014-11-23 14:07:38 (GMT)
committerfvogel <fvogelnew1@free.fr>2014-11-23 14:07:38 (GMT)
commit34b765f14f011c5b1d1f836997b5bfbcf89b6b1e (patch)
tree2eebb57305ebdb01bed9e8e2072da5fd6783f0ea /generic
parent7feb0a2ec8f0544fcbf584d987c6102abf6c24ca (diff)
downloadtk-34b765f14f011c5b1d1f836997b5bfbcf89b6b1e.zip
tk-34b765f14f011c5b1d1f836997b5bfbcf89b6b1e.tar.gz
tk-34b765f14f011c5b1d1f836997b5bfbcf89b6b1e.tar.bz2
Fixing FindDLine was not enough in all cases, now fix its callers (see test case 'A' in 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 d610d85..2b88ad6 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -4792,8 +4792,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;
}