mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
raster.c: need ceilf(large_bar_height * si) to avoid zero height rows;
also improve non-half-int interpolation performance raster/vector.c: use new stripf() func in "common.c" to workaround gcc 32-bit float calculation variations gs1.c: allow dummy AI "[]" if GS1NOCHECK_MODE and has data (#204); also add note re TPX AI 235 and terminating FNC1 Remove trailing whitespace in various files
This commit is contained in:
@ -715,7 +715,7 @@ static int pdf417(struct zint_symbol *symbol, unsigned char chaine[], const int
|
||||
for (i = k - 1; i >= 0; i--) {
|
||||
chainemc[mclength++] = mccorrection[i] ? 929 - mccorrection[i] : 0;
|
||||
}
|
||||
|
||||
|
||||
if (debug) {
|
||||
printf("Complete CW string (%d):\n", mclength);
|
||||
for (i = 0; i < mclength; i++) {
|
||||
@ -785,7 +785,7 @@ static int pdf417(struct zint_symbol *symbol, unsigned char chaine[], const int
|
||||
}
|
||||
}
|
||||
symbol->width = bp;
|
||||
|
||||
|
||||
/* ISO/IEC 15438:2015 Section 5.8.2 3X minimum row height */
|
||||
error_number = set_height(symbol, 3.0f, 0.0f, 0.0f, 0 /*no_errtxt*/);
|
||||
|
||||
@ -1217,7 +1217,7 @@ INTERNAL int micro_pdf417(struct zint_symbol *symbol, unsigned char chaine[], in
|
||||
}
|
||||
}
|
||||
symbol->width = bp;
|
||||
|
||||
|
||||
/* ISO/IEC 24728:2006 Section 5.8.2 2X minimum row height */
|
||||
if (error_number) {
|
||||
(void) set_height(symbol, 2.0f, 0.0f, 0.0f, 1 /*no_errtxt*/);
|
||||
|
Reference in New Issue
Block a user