mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-05 01:04:07 -04:00
Rename BARCODE_PLAIN_HRT
-> BARCODE_RAW_TEXT
and add warning
`ZINT_WARN_HRT_RAW_TEXT` if set when outputting HRT (ZXing-C++ issue 883, props Axel Waggershauser) README: Pharmacode -> One-Track, Pharmacode 2-trace -> Two-Track
This commit is contained in:
parent
888b4b5684
commit
8e7931b147
55 changed files with 623 additions and 408 deletions
|
@ -122,7 +122,7 @@ INTERNAL int auspost(struct zint_symbol *symbol, unsigned char source[], int len
|
|||
unsigned char dpid[9];
|
||||
unsigned char local_source[30];
|
||||
int zeroes = 0;
|
||||
const int plain_hrt = symbol->output_options & BARCODE_PLAIN_HRT;
|
||||
const int raw_text = symbol->output_options & BARCODE_RAW_TEXT;
|
||||
|
||||
/* Do all of the length checking first to avoid stack smashing */
|
||||
if (symbol->symbology == BARCODE_AUSPOST) {
|
||||
|
@ -277,7 +277,7 @@ INTERNAL int auspost(struct zint_symbol *symbol, unsigned char source[], int len
|
|||
symbol->rows = 3;
|
||||
symbol->width = writer - 1;
|
||||
|
||||
if (plain_hrt) {
|
||||
if (raw_text) {
|
||||
hrt_cpy_nochk(symbol, fcc, 2);
|
||||
hrt_cat_nochk(symbol, local_source, length);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue