bugfix for datamatrix error correction
more tests and code cleanup
This commit is contained in:
1 parent
e754f1b44c
commit
e5d11acdbf
19 files changed
+291
-157
No files matched your search
+3
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user