summaryrefslogtreecommitdiffstats
path: root/generic/tkTextBTree.c
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2004-06-07 16:23:51 (GMT)
committervincentdarley <vincentdarley>2004-06-07 16:23:51 (GMT)
commit707b3331e7ce6cd33034f9c2729c24982d9f6e20 (patch)
tree40a875b516769d6ce221b7d15fae1fc2005d34f2 /generic/tkTextBTree.c
parent6942d1174b14dc8d29cb5be46707909e718e89c7 (diff)
downloadtk-707b3331e7ce6cd33034f9c2729c24982d9f6e20.zip
tk-707b3331e7ce6cd33034f9c2729c24982d9f6e20.tar.gz
tk-707b3331e7ce6cd33034f9c2729c24982d9f6e20.tar.bz2
text widget partial line height calculations fix
Diffstat (limited to 'generic/tkTextBTree.c')
-rw-r--r--generic/tkTextBTree.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/generic/tkTextBTree.c b/generic/tkTextBTree.c
index c19e288..9f3b8e5 100644
--- a/generic/tkTextBTree.c
+++ b/generic/tkTextBTree.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkTextBTree.c,v 1.13 2004/01/13 02:06:00 davygrvy Exp $
+ * RCS: @(#) $Id: tkTextBTree.c,v 1.14 2004/06/07 16:23:52 vincentdarley Exp $
*/
#include "tkInt.h"
@@ -538,16 +538,6 @@ TkBTreeInsertChars(indexPtr, string)
}
/*
- * Cleanup the starting line for the insertion, plus the ending
- * line if it's different.
- */
-
- CleanupLine(indexPtr->linePtr);
- if (linePtr != indexPtr->linePtr) {
- CleanupLine(linePtr);
- }
-
- /*
* I don't believe it's possible for either of the two lines
* passed to this function to be the last line of text, but
* the function is robust to that case anyway. (We must never
@@ -558,6 +548,16 @@ TkBTreeInsertChars(indexPtr, string)
TK_TEXT_INVALIDATE_INSERT);
/*
+ * Cleanup the starting line for the insertion, plus the ending
+ * line if it's different.
+ */
+
+ CleanupLine(indexPtr->linePtr);
+ if (linePtr != indexPtr->linePtr) {
+ CleanupLine(linePtr);
+ }
+
+ /*
* Increment the line and pixel counts in all the parent nodes of the
* insertion point, then rebalance the tree if necessary.
*/