diff options
author | fvogel <fvogelnew1@free.fr> | 2012-02-02 10:40:12 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2012-02-02 10:40:12 (GMT) |
commit | f376d1c99841e1edea5440aa66932d03e9b0e038 (patch) | |
tree | c3591eb7b3dc09fe1d15a0764a5a18cd0a174b10 /generic/tkTextDisp.c | |
parent | 7664c99658c07b63bcdfc3827dd74d8da19ef1fd (diff) | |
download | tk-f376d1c99841e1edea5440aa66932d03e9b0e038.zip tk-f376d1c99841e1edea5440aa66932d03e9b0e038.tar.gz tk-f376d1c99841e1edea5440aa66932d03e9b0e038.tar.bz2 |
Better fix for bug-1630262, also fixing bug-1615425
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r-- | generic/tkTextDisp.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index f674b75..61fb76e 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -3219,34 +3219,6 @@ TextInvalidateLineMetrics( int fromLine; TextDInfo *dInfoPtr = textPtr->dInfoPtr; - /* - * All lines to invalidate must be inside the -startline/-endline range. - */ - - if (linePtr != NULL) { - int start; - TkTextLine *toLinePtr; - if (textPtr->start != NULL) { - fromLine = TkBTreeLinesTo(NULL, linePtr); - start = TkBTreeLinesTo(NULL, textPtr->start); - if (fromLine < start) { - lineCount -= start - fromLine; - linePtr = textPtr->start; - } - } - if (textPtr->end != NULL) { - int count = 0; - toLinePtr = linePtr; - while (count < lineCount && toLinePtr != NULL) { - toLinePtr = TkBTreeNextLine(textPtr, toLinePtr); - count++; - } - if (toLinePtr == NULL) { - lineCount = count; - } - } - } - if (linePtr != NULL) { int counter = lineCount; |