summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/skip2/go-qrcode/regular_symbol.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/skip2/go-qrcode/regular_symbol.go')
-rw-r--r--vendor/github.com/skip2/go-qrcode/regular_symbol.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/vendor/github.com/skip2/go-qrcode/regular_symbol.go b/vendor/github.com/skip2/go-qrcode/regular_symbol.go
index 134be18e..51eb148d 100644
--- a/vendor/github.com/skip2/go-qrcode/regular_symbol.go
+++ b/vendor/github.com/skip2/go-qrcode/regular_symbol.go
@@ -105,13 +105,19 @@ var (
)
func buildRegularSymbol(version qrCodeVersion, mask int,
- data *bitset.Bitset) (*symbol, error) {
+ data *bitset.Bitset, includeQuietZone bool) (*symbol, error) {
+
+ quietZoneSize := 0
+ if includeQuietZone {
+ quietZoneSize = version.quietZoneSize()
+ }
+
m := &regularSymbol{
version: version,
mask: mask,
data: data,
- symbol: newSymbol(version.symbolSize(), version.quietZoneSize()),
+ symbol: newSymbol(version.symbolSize(), quietZoneSize),
size: version.symbolSize(),
}