From 9b78cd4a89b6f151d0853d630c963657266c2c12 Mon Sep 17 00:00:00 2001 From: Mindaugas Kavaliauskas Date: Sat, 13 Nov 2010 02:30:14 +0000 Subject: [PATCH] 2010-11-13 04:28 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt) * harbour/contrib/hbzebra/datamtrx.c ! fixed typo --- harbour/ChangeLog | 4 ++++ harbour/contrib/hbzebra/datamtrx.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index e1d1a52ca3..fee41a2186 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,10 @@ The license applies to all entries newer than 2009-04-28. */ +2010-11-13 04:28 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt) + * harbour/contrib/hbzebra/datamtrx.c + ! fixed typo + 2010-11-13 00:58 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt) * harbour/contrib/hbzebra/datamtrx.c * harbour/contrib/hbzebra/pdf417.c diff --git a/harbour/contrib/hbzebra/datamtrx.c b/harbour/contrib/hbzebra/datamtrx.c index ca03916076..8ac8210cfd 100644 --- a/harbour/contrib/hbzebra/datamtrx.c +++ b/harbour/contrib/hbzebra/datamtrx.c @@ -346,7 +346,7 @@ static void _datamatrix_do_placement( PHB_BITBUFFER pBits, char * pCW, PDATAMATR _datamatrix_place_b( pArr, iPRow, iPCol, i++ ); if( iR == iPRow - 2 && iC == 0 && ( iPCol % 8 ) == 4 ) _datamatrix_place_c( pArr, iPRow, iPCol, i++ ); - if( iR == iPRow - 4 && iC == 2 && ( iPCol % 8 ) == 0 ) + if( iR == iPRow + 4 && iC == 2 && ( iPCol % 8 ) == 0 ) _datamatrix_place_d( pArr, iPRow, iPCol, i++ ); do @@ -473,7 +473,7 @@ PHB_ZEBRA hb_zebra_create_datamatrix( const char * szCode, HB_SIZE nLen, int iFl for( j = 0; j < pSize->iRow; j += pSize->iRegionRow ) { for( i = 0; i < pSize->iCol; i++ ) - hb_bitbuffer_set( pZebra->pBits, ( j + pSize->iRegionCol - 1 ) * pSize->iCol + i, 1 ); + hb_bitbuffer_set( pZebra->pBits, ( j + pSize->iRegionRow - 1 ) * pSize->iCol + i, 1 ); for( i = 0; i < pSize->iCol; i += 2 ) hb_bitbuffer_set( pZebra->pBits, j * pSize->iCol + i, 1 ); }