bugfix for datamatrix error correction

more tests and code cleanup
This commit is contained in:
Florian Sundermann committed 2013-12-13 13:53:27 +01:00
1 parent e754f1b44c
commit e5d11acdbf
19 files changed
+291 -157

No files matched your search

+3 -2
View File
@@ -2,12 +2,13 @@ package ean
import (
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/utils"
"image"
"image/color"
)
type eancode struct {
*barcode.BitList
*utils.BitList
content string
}
@@ -16,7 +17,7 @@ func newEANCode(isEAN8 bool) *eancode {
if isEAN8 {
capacity = 67
}
return &eancode{barcode.NewBitList(capacity), ""}
return &eancode{utils.NewBitList(capacity), ""}
}
func (c *eancode) Content() string {