diff options
author | fvogel <fvogelnew1@free.fr> | 2012-02-28 20:44:34 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2012-02-28 20:44:34 (GMT) |
commit | 5f980e90395c85af59bb9286b197a620d8ba911f (patch) | |
tree | d62de6938569517afd6274d9096c99eadec78078 /generic/tkTextDisp.c | |
parent | 9893c7fae421e1414f8e19acd5059350093c49c3 (diff) | |
parent | 220b6aecbb178564d3ee630cf19c6aa8ae93a67d (diff) | |
download | tk-5f980e90395c85af59bb9286b197a620d8ba911f.zip tk-5f980e90395c85af59bb9286b197a620d8ba911f.tar.gz tk-5f980e90395c85af59bb9286b197a620d8ba911f.tar.bz2 |
[Bug-1630262], [Bug-1615425]: segfault when deleting lines or tagging outside of the -startline/-endline range with peer text widgets. [Bug-3487407]: Weird text indices.
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r-- | generic/tkTextDisp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index 249f476..b3d94ec 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -1972,7 +1972,7 @@ UpdateDisplayInfo( if (spaceLeft <= dInfoPtr->newTopPixelOffset) { /* - * We can full up all the needed space just by showing more of the + * We can fill up all the needed space just by showing more of the * current top line. */ @@ -3231,7 +3231,7 @@ TextInvalidateLineMetrics( */ TkBTreeLinePixelEpoch(textPtr, linePtr) = 0; - while (counter > 0 && linePtr != 0) { + while (counter > 0 && linePtr != NULL) { linePtr = TkBTreeNextLine(textPtr, linePtr); if (linePtr != NULL) { TkBTreeLinePixelEpoch(textPtr, linePtr) = 0; @@ -3246,7 +3246,7 @@ TextInvalidateLineMetrics( * more lines than is strictly necessary (but the examination of the * extra lines should be quick, since their pixelCalculationEpoch will * be up to date). However, to keep track of that would require more - * complex record-keeping that what we have. + * complex record-keeping than what we have. */ if (dInfoPtr->lineUpdateTimer == NULL) { |