mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-15 07:34:35 -04:00
unlatch before single ASCII character is required when leaving text encodation. fix for previous revision
This commit is contained in:
parent
fe7b71ae31
commit
d27db1f6e0
1 changed files with 1 additions and 1 deletions
2
backend/dmatrix.c
Normal file → Executable file
2
backend/dmatrix.c
Normal file → Executable file
|
@ -687,7 +687,7 @@ int dm200encode(struct zint_symbol *symbol, unsigned char source[], unsigned cha
|
||||||
current_mode = DM_ASCII;
|
current_mode = DM_ASCII;
|
||||||
}
|
}
|
||||||
if(text_p == 1) {
|
if(text_p == 1) {
|
||||||
// don't unlatch before sending a single remaining ASCII character.
|
target[tp] = 254; tp++; /* text encodation requires unlatch */
|
||||||
target[tp] = source[inputlen - 1] + 1; tp++;
|
target[tp] = source[inputlen - 1] + 1; tp++;
|
||||||
concat(binary, " ");
|
concat(binary, " ");
|
||||||
if(debug) printf("ASC A%02X ", target[tp - 1] - 1);
|
if(debug) printf("ASC A%02X ", target[tp - 1] - 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue