mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Fixed substring call
This commit is contained in:
parent
849f81354c
commit
e31ac261e3
|
@ -215,7 +215,7 @@ final class PDF417HighLevelEncoder {
|
||||||
if (b == 0) {
|
if (b == 0) {
|
||||||
b = 1;
|
b = 1;
|
||||||
}
|
}
|
||||||
byte[] bytes = msg.substring(p, b).getBytes(encoding);
|
byte[] bytes = msg.substring(p, p + b).getBytes(encoding);
|
||||||
if (bytes.length == 1 && encodingMode == TEXT_COMPACTION) {
|
if (bytes.length == 1 && encodingMode == TEXT_COMPACTION) {
|
||||||
//Switch for one byte (instead of latch)
|
//Switch for one byte (instead of latch)
|
||||||
encodeBinary(bytes, 0, 1, TEXT_COMPACTION, sb);
|
encodeBinary(bytes, 0, 1, TEXT_COMPACTION, sb);
|
||||||
|
|
Loading…
Reference in a new issue