diff options
author | vincentdarley <vincentdarley> | 2004-06-07 16:23:51 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2004-06-07 16:23:51 (GMT) |
commit | 915fbf1fa146311f92bce27965b21b4dc40d7318 (patch) | |
tree | 40a875b516769d6ce221b7d15fae1fc2005d34f2 /generic/tkTextBTree.c | |
parent | 734db3fdfe4f653c96676b7915c17c96ccebc979 (diff) | |
download | tk-915fbf1fa146311f92bce27965b21b4dc40d7318.zip tk-915fbf1fa146311f92bce27965b21b4dc40d7318.tar.gz tk-915fbf1fa146311f92bce27965b21b4dc40d7318.tar.bz2 |
text widget partial line height calculations fix
Diffstat (limited to 'generic/tkTextBTree.c')
-rw-r--r-- | generic/tkTextBTree.c | 22 |
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. */ |