fix eci w/o priority charset setting

This commit is contained in:
Henry Schimke
2022-11-05 12:00:52 -05:00
parent 76ec49ac83
commit a4c640822c
5 changed files with 45 additions and 45 deletions

View File

@@ -1302,7 +1302,7 @@ impl RXingResult {
size += Self::prepend(&Edge::getBytes1(254), &mut bytesAL);
}
let mut hold_current = Some(solution.clone());
while let Some(current) = hold_current {
while let Some(current) = hold_current { // Fails on i = 77 should be 151 is 144
size += Self::prepend(&current.getDataBytes()?, &mut bytesAL);
if current.previous.is_none()
@@ -1320,9 +1320,7 @@ impl RXingResult {
randomizePostfixLength.push(bytesAL.len());
randomizeLengths.push(size);
}
//if Edge::getPreviousStartMode(current.previous.clone()) != current.getMode() {
Self::prepend(&current.getLatchBytes()?, &mut bytesAL);
//}
size = 0;
}