summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2014-11-22 23:05:01 (GMT)
committerfvogelnew1@free.fr <fvogel>2014-11-22 23:05:01 (GMT)
commitce944811bf1229a14fa94dbe8a2e85a19bb24176 (patch)
tree2773c99af8d7f140389fed85d31e7bcd3a33f33f /generic
parent005555195b0c3cbe65f59c89d378779e16d11983 (diff)
parenta8acce41e02cb6c81209f9f58e8f6ae284096972 (diff)
downloadtk-ce944811bf1229a14fa94dbe8a2e85a19bb24176.zip
tk-ce944811bf1229a14fa94dbe8a2e85a19bb24176.tar.gz
tk-ce944811bf1229a14fa94dbe8a2e85a19bb24176.tar.bz2
Merged from branch bug-7703f947aa
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTextDisp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 510f3e0..d773fff 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -6435,6 +6435,7 @@ FindDLine(
CONST TkTextIndex *indexPtr)/* Index of desired character. */
{
TkTextLine *linePtr;
+ DLine *dlPtrPrev;
if (dlPtr == NULL) {
return NULL;
@@ -6455,6 +6456,7 @@ FindDLine(
linePtr = dlPtr->index.linePtr;
while (linePtr != indexPtr->linePtr) {
while (dlPtr->index.linePtr == linePtr) {
+ dlPtrPrev = dlPtr;
dlPtr = dlPtr->nextPtr;
if (dlPtr == NULL) {
return NULL;
@@ -6472,7 +6474,7 @@ FindDLine(
}
}
if (indexPtr->linePtr != dlPtr->index.linePtr) {
- return dlPtr;
+ return dlPtrPrev;
}
/*