Codablock: Code A/B character set change corrected

This commit is contained in:
Harald Oehlmann 2017-04-03 11:47:39 +02:00
parent 7494a241ca
commit f7753564cf

View File

@ -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;
} }