summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2014-11-23 14:07:38 (GMT)
committerfvogelnew1@free.fr <fvogel>2014-11-23 14:07:38 (GMT)
commit6aa9287c307b91afba9cbce1e1b8ce8fe44a6e0f (patch)
tree68d85ff8036b0e92fc1b1f58890dae657d5866ce /generic/tkTextDisp.c
parenta8acce41e02cb6c81209f9f58e8f6ae284096972 (diff)
downloadtk-6aa9287c307b91afba9cbce1e1b8ce8fe44a6e0f.zip
tk-6aa9287c307b91afba9cbce1e1b8ce8fe44a6e0f.tar.gz
tk-6aa9287c307b91afba9cbce1e1b8ce8fe44a6e0f.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/tkTextDisp.c')
-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;
}