From e8469028d1ba63a59764a59b77cf3a1a80ccf0eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Czerpak?= Date: Tue, 16 Feb 2016 15:44:20 +0100 Subject: [PATCH] 2016-02-16 15:44 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * src/rtl/hbgtcore.c ! fill whole box area in DispBpx() when 0 length string or string with Chr( 0 ) at the beginning is used as box frame - Cl*pper compatible behavior --- ChangeLog.txt | 6 ++++++ src/rtl/hbgtcore.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 1ef3b02865..f2da67228c 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -10,6 +10,12 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2016-02-16 15:44 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * src/rtl/hbgtcore.c + ! fill whole box area in DispBpx() when 0 length string or string with + Chr( 0 ) at the beginning is used as box frame - Cl*pper compatible + behavior + 2016-02-11 11:54 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * ChangeLog.txt * include/hbapifs.h diff --git a/src/rtl/hbgtcore.c b/src/rtl/hbgtcore.c index 85802601e2..3123bf7a62 100644 --- a/src/rtl/hbgtcore.c +++ b/src/rtl/hbgtcore.c @@ -1573,7 +1573,7 @@ static void hb_gt_def_BoxW( PHB_GT pGT, int iTop, int iLeft, int iBottom, int iR HB_WCHAR szBoxW[ 10 ]; HB_WCHAR wcPadCh = ( HB_WCHAR ) HB_GTSELF_GETCLEARCHAR( pGT ); - if( szFrame ) + if( szFrame && *szFrame ) { for( i = 0; *szFrame && i < 9; ++i ) wcPadCh = szBoxW[ i ] = *szFrame++;