mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Row indicator bugfix
This commit is contained in:
parent
798db42416
commit
fc121cba99
@ -17,6 +17,8 @@
|
|||||||
You should have received a copy of the GNU General Public License along
|
You should have received a copy of the GNU General Public License along
|
||||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
Includes bugfix thanks to rens.dol@gmail.com
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -678,7 +680,10 @@ int codablock(struct zint_symbol *symbol, unsigned char source[])
|
|||||||
row_indicator[i] = i + 42;
|
row_indicator[i] = i + 42;
|
||||||
} else {
|
} else {
|
||||||
/* Code A or B */
|
/* Code A or B */
|
||||||
row_indicator[i] = i + 10;
|
if( i < 7 )
|
||||||
|
row_indicator[i] = i + 10;
|
||||||
|
else
|
||||||
|
row_indicator[i] = i + 20;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -697,12 +702,12 @@ int codablock(struct zint_symbol *symbol, unsigned char source[])
|
|||||||
for(i = 0; i < rows_needed; i++) {
|
for(i = 0; i < rows_needed; i++) {
|
||||||
int writer, flip_flop;
|
int writer, flip_flop;
|
||||||
|
|
||||||
/*printf("row %d: ",i);
|
printf("row %d: ",i);
|
||||||
printf("103 %d %d [", subset_selector[i], row_indicator[i]);
|
printf("103 %d %d [", subset_selector[i], row_indicator[i]);
|
||||||
for(j = 0; j < columns_needed; j++) {
|
for(j = 0; j < columns_needed; j++) {
|
||||||
printf("%d ",blockmatrix[i][j]);
|
printf("%d ",blockmatrix[i][j]);
|
||||||
}
|
}
|
||||||
printf("] %d 106\n", row_check[i]);*/
|
printf("] %d 106\n", row_check[i]);
|
||||||
|
|
||||||
strcpy(row_pattern, "");
|
strcpy(row_pattern, "");
|
||||||
/* Start character */
|
/* Start character */
|
||||||
|
Loading…
Reference in New Issue
Block a user