diff --git a/harbour/ChangeLog b/harbour/ChangeLog index a948c99d38..2b717157ff 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,10 @@ 2002-12-01 23:12 UTC+0100 Foo Bar */ +2005-01-22 23:40 UTC+0300 Alexander Kresin + * source/rdd/dbfntx/dbfntx1.c + ! Yet another rare bug fixed. + 2005-01-22 19:55 UTC+0300 Alexander Kresin * source/rdd/dbfntx/dbfntx1.c ! Bug fixed, which oocured in some rare situations while record updating. diff --git a/harbour/source/rdd/dbfntx/dbfntx1.c b/harbour/source/rdd/dbfntx/dbfntx1.c index a6056ebbde..16f2160c0f 100644 --- a/harbour/source/rdd/dbfntx/dbfntx1.c +++ b/harbour/source/rdd/dbfntx/dbfntx1.c @@ -1602,7 +1602,7 @@ static void hb_ntxTagBalance( LPTAGINFO pTag, int level ) else { pPagePair = hb_ntxPageLoad( pTag, KEYITEM( pPageParent, pairkey )->page ); - if( pPageParent->uiKeys == 1 && + if( pPageParent->uiKeys == 1 && pPage->uiKeys && pPagePair->uiKeys && ( pPage->uiKeys + pPagePair->uiKeys ) > pTag->MaxKeys - 2 ) { hb_ntxPageRelease( pTag,pPageParent ); @@ -1633,7 +1633,7 @@ static void hb_ntxTagBalance( LPTAGINFO pTag, int level ) else { pPagePair = hb_ntxPageLoad( pTag, KEYITEM( pPageParent, pairkey )->page ); - if( pPageParent->uiKeys == 1 && + if( pPageParent->uiKeys == 1 && pPage->uiKeys && pPagePair->uiKeys && ( pPage->uiKeys + pPagePair->uiKeys ) > pTag->MaxKeys - 2 ) { hb_ntxPageRelease( pTag,pPageParent );