mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Correct processing of escape char mode
This commit is contained in:
parent
a91e4fab79
commit
ddce98a1bb
@ -1079,7 +1079,8 @@ int ZBarcode_Encode(struct zint_symbol *symbol, const unsigned char *source, int
|
|||||||
local_source[in_length] = '\0';
|
local_source[in_length] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (symbol->input_mode &= ESCAPE_MODE) {
|
if (symbol->input_mode & ESCAPE_MODE) {
|
||||||
|
printf("Esc process\n");
|
||||||
error_number = escape_char_process(symbol, local_source, &in_length);
|
error_number = escape_char_process(symbol, local_source, &in_length);
|
||||||
if (error_number != 0) {
|
if (error_number != 0) {
|
||||||
return error_number;
|
return error_number;
|
||||||
|
@ -627,7 +627,7 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!strcmp(long_options[option_index].name, "esc")) {
|
if (!strcmp(long_options[option_index].name, "esc")) {
|
||||||
if (!(my_symbol->input_mode &= ESCAPE_MODE)) {
|
if (!(my_symbol->input_mode & ESCAPE_MODE)) {
|
||||||
my_symbol->input_mode += ESCAPE_MODE;
|
my_symbol->input_mode += ESCAPE_MODE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user