summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2012-02-28 20:14:21 (GMT)
committerfvogel <fvogelnew1@free.fr>2012-02-28 20:14:21 (GMT)
commit220b6aecbb178564d3ee630cf19c6aa8ae93a67d (patch)
treeadd824c5019c64a12957fa0d0b75cc242296b5f7 /generic/tkTextDisp.c
parent45e67a168fc74dc40011588fc29a08e46d5e8bd6 (diff)
parent1487608db176d526e0c03938073340f5f2a068eb (diff)
downloadtk-220b6aecbb178564d3ee630cf19c6aa8ae93a67d.zip
tk-220b6aecbb178564d3ee630cf19c6aa8ae93a67d.tar.gz
tk-220b6aecbb178564d3ee630cf19c6aa8ae93a67d.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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 5f30b11..d0cd4d2 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -1971,7 +1971,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.
*/
@@ -3229,7 +3229,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;
@@ -3244,7 +3244,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) {