|
|
@ -7161,7 +7161,7 @@ void TQTextEdit::optimDoAutoScroll()
|
|
|
|
if ( doScroll )
|
|
|
|
if ( doScroll )
|
|
|
|
ensureVisible( xx, yy, 1, 1 );
|
|
|
|
ensureVisible( xx, yy, 1, 1 );
|
|
|
|
|
|
|
|
|
|
|
|
// if the text document is smaller than the heigth of the viewport
|
|
|
|
// if the text document is smaller than the height of the viewport
|
|
|
|
// - redraw the whole thing otherwise calculate the rect that
|
|
|
|
// - redraw the whole thing otherwise calculate the rect that
|
|
|
|
// needs drawing.
|
|
|
|
// needs drawing.
|
|
|
|
if ( d->od->numLines * fm.lineSpacing() < viewport()->height() ) {
|
|
|
|
if ( d->od->numLines * fm.lineSpacing() < viewport()->height() ) {
|
|
|
|