diff --git a/ChangeLog.txt b/ChangeLog.txt index 1f6c24a47e..d6e4868994 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -10,6 +10,12 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2015-02-19 01:19 UTC-0800 Pritpal Bedi (bedipritpal/at/hotmail.com) + * contrib/gtwvg/gtwvgd.c + * contrib/gtwvg/gtwgud.c + ! Fixed: a bug which was causing HB_GTI_SETPOS_XY/ROWCOL returning + wrong values in case it is called as GET method. + 2015-02-19 20:20 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * contrib/hbssl/evpciph.c * contrib/hbssl/hbssl.h diff --git a/contrib/gtwvg/gtwgud.c b/contrib/gtwvg/gtwgud.c index 4ea819d913..21a16bb116 100644 --- a/contrib/gtwvg/gtwgud.c +++ b/contrib/gtwvg/gtwgud.c @@ -1680,7 +1680,10 @@ static HB_BOOL hb_gt_wvt_Info( PHB_GT pGT, int iType, PHB_GT_INFO pInfo ) i1 = hb_arrayGetNI( pInfo->pNewVal, 1 ); i2 = hb_arrayGetNI( pInfo->pNewVal, 2 ); } - if( i1 >= -1 && i2 >= -1 ) + else + break; + + if( i1 > -1 && i2 > -1 ) { int x, y; diff --git a/contrib/gtwvg/gtwvgd.c b/contrib/gtwvg/gtwvgd.c index d9fbd9f221..94c51df5e8 100644 --- a/contrib/gtwvg/gtwvgd.c +++ b/contrib/gtwvg/gtwvgd.c @@ -3743,7 +3743,10 @@ static HB_BOOL hb_gt_wvt_Info( PHB_GT pGT, int iType, PHB_GT_INFO pInfo ) i1 = hb_arrayGetNI( pInfo->pNewVal, 1 ); i2 = hb_arrayGetNI( pInfo->pNewVal, 2 ); } - if( i1 >= -1 && i2 >= -1 ) + else + break; + + if( i1 > -1 && i2 > -1 ) { int x, y;