diff options
author | fvogelnew1@free.fr <fvogel> | 2014-11-22 23:05:01 (GMT) |
---|---|---|
committer | fvogelnew1@free.fr <fvogel> | 2014-11-22 23:05:01 (GMT) |
commit | ce944811bf1229a14fa94dbe8a2e85a19bb24176 (patch) | |
tree | 2773c99af8d7f140389fed85d31e7bcd3a33f33f /generic | |
parent | 005555195b0c3cbe65f59c89d378779e16d11983 (diff) | |
parent | a8acce41e02cb6c81209f9f58e8f6ae284096972 (diff) | |
download | tk-ce944811bf1229a14fa94dbe8a2e85a19bb24176.zip tk-ce944811bf1229a14fa94dbe8a2e85a19bb24176.tar.gz tk-ce944811bf1229a14fa94dbe8a2e85a19bb24176.tar.bz2 |
Merged from branch bug-7703f947aa
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkTextDisp.c | 4 |
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; } /* |