From fabb23326960eb9cb3d8c1749d1cf3b7d544e79f Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Tue, 14 Aug 2012 23:46:53 +0000 Subject: [PATCH] 2012-08-14 16:45 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbqt/qtgui/qth/QTextCursor.qth ! Fixed: a nasty overlook. --- harbour/ChangeLog | 4 ++++ harbour/contrib/hbqt/qtgui/qth/QTextCursor.qth | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index b156a12678..e2c313b671 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,10 @@ The license applies to all entries newer than 2009-04-28. */ +2012-08-14 16:45 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) + * contrib/hbqt/qtgui/qth/QTextCursor.qth + ! Fixed: a nasty overlook. + 2012-08-14 12:44 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * harbour/src/rtl/valtype.c * modified HB_ISEVALITEM() to use HB_IS_EVALITEM() macro diff --git a/harbour/contrib/hbqt/qtgui/qth/QTextCursor.qth b/harbour/contrib/hbqt/qtgui/qth/QTextCursor.qth index 5f84e92c13..d4ca238505 100644 --- a/harbour/contrib/hbqt/qtgui/qth/QTextCursor.qth +++ b/harbour/contrib/hbqt/qtgui/qth/QTextCursor.qth @@ -40,11 +40,11 @@ HB_FUNC( QT_QTEXTCURSOR ) if( hbqt_par_isDerivedFrom( 1, "QTEXTCURSOR" ) ) __HB_RETPTRGC__( new QTextCursor( *hbqt_par_QTextCursor( 1 ) ) ); else if( hbqt_par_isDerivedFrom( 1, "QTEXTDOCUMENT" ) ) - __HB_RETPTRGC__( new QTextCursor( hbqt_par_QTextDocument( 2 ) ) ); + __HB_RETPTRGC__( new QTextCursor( hbqt_par_QTextDocument( 1 ) ) ); else if( hbqt_par_isDerivedFrom( 1, "QTEXTBLOCK" ) ) - __HB_RETPTRGC__( new QTextCursor( *hbqt_par_QTextBlock( 2 ) ) ); + __HB_RETPTRGC__( new QTextCursor( *hbqt_par_QTextBlock( 1 ) ) ); else if( hbqt_par_isDerivedFrom( 1, "QTEXTFRAME" ) ) - __HB_RETPTRGC__( new QTextCursor( hbqt_par_QTextFrame( 2 ) ) ); + __HB_RETPTRGC__( new QTextCursor( hbqt_par_QTextFrame( 1 ) ) ); else __HB_RETPTRGC__( new QTextCursor() ); }