From 95910ec18b2715a5fbcea58ca08b3c055b86c032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Czerpak?= Date: Fri, 8 Nov 2013 17:08:24 +0100 Subject: [PATCH] 2013-11-08 17:08 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * src/rtl/gtxwc/gtxwc.c ! missing parenthesis --- ChangeLog.txt | 4 ++++ src/rtl/gtxwc/gtxwc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 797769d1ff..204424cf4d 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -10,6 +10,10 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2013-11-08 17:08 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * src/rtl/gtxwc/gtxwc.c + ! missing parenthesis + 2013-11-08 17:06 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * src/rtl/gtxwc/gtxwc.c ! protection agains switching [x] button before window is open diff --git a/src/rtl/gtxwc/gtxwc.c b/src/rtl/gtxwc/gtxwc.c index 95a56f0b21..7922ed6904 100644 --- a/src/rtl/gtxwc/gtxwc.c +++ b/src/rtl/gtxwc/gtxwc.c @@ -5128,7 +5128,7 @@ static HB_BOOL hb_gt_xwc_Info( PHB_GT pGT, int iType, PHB_GT_INFO pInfo ) iVal = hb_itemGetNI( pInfo->pNewVal ); if( iVal >= 0 && iVal <= 2 && wnd->iCloseMode != iVal ) { - if( iVal == 2 || wnd->iCloseMode == 2 && wnd->fInit ) + if( ( iVal == 2 || wnd->iCloseMode == 2 ) && wnd->fInit ) hb_gt_xwc_CloseButton( wnd, iVal < 2 ); wnd->iCloseMode = iVal; }