mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Fix issue 221
git-svn-id: https://zxing.googlecode.com/svn/trunk@1029 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
6dbf893cb0
commit
95596de0d2
|
@ -427,9 +427,9 @@ namespace com.google.zxing.oned
|
|||
// to be a printable character. If it was just interpreted as a control code, nothing to remove
|
||||
if (resultLength > 0 && lastCharacterWasPrintable) {
|
||||
if (codeSet == CODE_CODE_C) {
|
||||
result.Remove(resultLength - 2, resultLength);
|
||||
result.Remove(resultLength - 2, 2);
|
||||
} else {
|
||||
result.Remove(resultLength - 1, resultLength);
|
||||
result.Remove(resultLength - 1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -456,4 +456,4 @@ namespace com.google.zxing.oned
|
|||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue