mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-27 13:34:19 -04:00
Bugfix: Ouput binding in raster images
Also: tidy up use of output_options
This commit is contained in:
parent
747faf85ed
commit
3cf8a142b8
10 changed files with 52 additions and 44 deletions
|
@ -570,13 +570,17 @@ static int reduced_charset(struct zint_symbol *symbol, const unsigned char *sour
|
|||
if (symbol->symbology == BARCODE_CODE16K) {
|
||||
symbol->whitespace_width = 16;
|
||||
symbol->border_width = 2;
|
||||
symbol->output_options += BARCODE_BIND;
|
||||
if (!(symbol->output_options & BARCODE_BIND)) {
|
||||
symbol->output_options += BARCODE_BIND;
|
||||
}
|
||||
}
|
||||
|
||||
if (symbol->symbology == BARCODE_ITF14) {
|
||||
symbol->whitespace_width = 20;
|
||||
symbol->border_width = 8;
|
||||
symbol->output_options += BARCODE_BOX;
|
||||
if (!(symbol->output_options & BARCODE_BOX)) {
|
||||
symbol->output_options += BARCODE_BOX;
|
||||
}
|
||||
}
|
||||
|
||||
switch (symbol->input_mode) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue