Fix issue 221

git-svn-id: https://zxing.googlecode.com/svn/trunk@1029 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2009-08-04 08:53:05 +00:00
parent 6dbf893cb0
commit 95596de0d2

View file

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