diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 0d581b664e..664bebaf12 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,11 @@ The license applies to all entries newer than 2009-04-28. */ +2010-07-04 12:49 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) + * contrib/hbqt/hbqt_hbqplaintextedit.cpp + ! Fixed: one more glitch in selected text background color + off by few pixels verically - now the bottom line. + 2010-07-04 12:20 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbqt/hbqt_hbqplaintextedit.cpp ! Fixed: glitch in selected text background color off by few pixels. diff --git a/harbour/contrib/hbqt/hbqt_hbqplaintextedit.cpp b/harbour/contrib/hbqt/hbqt_hbqplaintextedit.cpp index 7ae2debccd..83581c9676 100644 --- a/harbour/contrib/hbqt/hbqt_hbqplaintextedit.cpp +++ b/harbour/contrib/hbqt/hbqt_hbqplaintextedit.cpp @@ -1619,7 +1619,7 @@ void HBQPlainTextEdit::hbPaintSelection( QPaintEvent * event ) int fontWidth = fontMetrics().averageCharWidth(); int top = ( ( rb <= t ) ? 0 : ( ( rb - t ) * fontHeight ) ) + ttop; - int btm = ( ( re - t + 1 ) * fontHeight ) - top; + int btm = ( ( re - t + 1 ) * fontHeight ) - top + ttop; btm = btm > viewport()->height() ? viewport()->height() : btm; QBrush br( m_selectionColor );