From 3c79ab6e53510eafc0ce5ab37828d9f07e88934b Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Sat, 15 May 2010 19:23:54 +0000 Subject: [PATCH] 2010-15-15 12:20 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) * contrib/hbqt/hbqt_hbqplaintextedit.cpp ! Fixed: selection with Sh+Left was not working ok. --- harbour/ChangeLog | 4 ++++ harbour/contrib/hbqt/hbqt_hbqplaintextedit.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index bc9fee5526..af177d38a7 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,10 @@ past entries belonging to author(s): Viktor Szakats. */ +2010-15-15 12:20 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) + * contrib/hbqt/hbqt_hbqplaintextedit.cpp + ! Fixed: selection with Sh+Left was not working ok. + 2010-15-15 12:03 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) * contrib/hbqt/doc/en/class_hbqplaintextedit.txt * contrib/hbqt/hbqt_hbqplaintextedit.cpp diff --git a/harbour/contrib/hbqt/hbqt_hbqplaintextedit.cpp b/harbour/contrib/hbqt/hbqt_hbqplaintextedit.cpp index beb6ad7323..80da35c0c9 100644 --- a/harbour/contrib/hbqt/hbqt_hbqplaintextedit.cpp +++ b/harbour/contrib/hbqt/hbqt_hbqplaintextedit.cpp @@ -1235,7 +1235,7 @@ void HBQPlainTextEdit::hbPaintSelection( QPaintEvent * event ) { if( rb == re ) { - int x = ( ( columnBegins - c ) * fontWidth ) + marginX; + int x = ( ( cb - c ) * fontWidth ) + marginX; int w = ( ce - cb ) * fontWidth; r = QRect( x, top, w, fontHeight ); }