mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Codablock: Code A/B character set change corrected
This commit is contained in:
parent
7494a241ca
commit
f7753564cf
@ -305,7 +305,13 @@ int Columns2Rows(CharacterSetTable *T, unsigned char *data, int dataLength,
|
|||||||
emptyColumns=0;
|
emptyColumns=0;
|
||||||
}else{
|
}else{
|
||||||
/* <Shift> or <switchB>? */
|
/* <Shift> or <switchB>? */
|
||||||
pSet[charCur]|=(T[charCur].BFollowing==1)?CShift:CodeB;
|
if (T[charCur].BFollowing==1)
|
||||||
|
{
|
||||||
|
pSet[charCur]|=CShift;
|
||||||
|
} else {
|
||||||
|
pSet[charCur]|=CodeB;
|
||||||
|
characterSetCur = CodeB;
|
||||||
|
}
|
||||||
emptyColumns-=2;
|
emptyColumns-=2;
|
||||||
++charCur;
|
++charCur;
|
||||||
}
|
}
|
||||||
@ -324,7 +330,13 @@ int Columns2Rows(CharacterSetTable *T, unsigned char *data, int dataLength,
|
|||||||
emptyColumns=0;
|
emptyColumns=0;
|
||||||
} else {
|
} else {
|
||||||
/* <Shift> or <switchA>? */
|
/* <Shift> or <switchA>? */
|
||||||
pSet[charCur]|=(T[charCur].AFollowing==1)?CShift:CodeA;
|
if (T[charCur].AFollowing==1)
|
||||||
|
{
|
||||||
|
pSet[charCur]|=CShift;
|
||||||
|
} else {
|
||||||
|
pSet[charCur]|=CodeA;
|
||||||
|
characterSetCur = CodeA;
|
||||||
|
}
|
||||||
emptyColumns-=2;
|
emptyColumns-=2;
|
||||||
++charCur;
|
++charCur;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user