From: srowen Date: Tue, 4 Aug 2009 08:53:05 +0000 (+0000) Subject: Fix issue 221 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;ds=sidebyside;h=3830bdb7d119699f6d89c4792f41c42e7ef8f4b8;p=zxing.git Fix issue 221 git-svn-id: http://zxing.googlecode.com/svn/trunk@1029 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- diff --git a/csharp/oned/Code128Reader.cs b/csharp/oned/Code128Reader.cs index 9834a85e..3be0c5a1 100755 --- a/csharp/oned/Code128Reader.cs +++ b/csharp/oned/Code128Reader.cs @@ -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 -} \ No newline at end of file +}