From 3830bdb7d119699f6d89c4792f41c42e7ef8f4b8 Mon Sep 17 00:00:00 2001 From: srowen Date: Tue, 4 Aug 2009 08:53:05 +0000 Subject: [PATCH] Fix issue 221 git-svn-id: http://zxing.googlecode.com/svn/trunk@1029 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- csharp/oned/Code128Reader.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +} -- 2.20.1