From 80e1f2399a35cb99bce38576c1c051db168f5a0b Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Mon, 4 Jun 2012 21:12:51 +0000 Subject: [PATCH] 2012-06-04 14:11 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbqt/qscintilla/qth/QsciStyledText.qth ! Fixed: ( residual ) usage of hbqt_par_QString(). --- harbour/ChangeLog | 4 ++++ harbour/contrib/hbqt/qscintilla/qth/QsciStyledText.qth | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 88e4e72b5f..eef7dfbe80 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,10 @@ The license applies to all entries newer than 2009-04-28. */ +2012-06-04 14:11 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) + * contrib/hbqt/qscintilla/qth/QsciStyledText.qth + ! Fixed: ( residual ) usage of hbqt_par_QString(). + 2012-06-04 14:02 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbide/hbqreportsmanager.prg * contrib/hbide/hbqtoolbar.prg diff --git a/harbour/contrib/hbqt/qscintilla/qth/QsciStyledText.qth b/harbour/contrib/hbqt/qscintilla/qth/QsciStyledText.qth index af9758f5f2..c1a8939156 100644 --- a/harbour/contrib/hbqt/qscintilla/qth/QsciStyledText.qth +++ b/harbour/contrib/hbqt/qscintilla/qth/QsciStyledText.qth @@ -38,7 +38,9 @@ HB_FUNC( QT_QSCISTYLEDTEXT ) { if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) ) { - __HB_RETPTRGC__( new QsciStyledText( hbqt_par_QString( 1 ), hb_parni( 2 ) ) ); + void * pText01 = NULL; + __HB_RETPTRGC__( new QsciStyledText( hb_parstr_utf8( 1, &pText01, NULL ), hb_parni( 2 ) ) ); + hb_strfree( pText01 ); } else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISOBJECT( 2 ) ) {