Fix margin for 1D barcodes
Since ZXingCpp v3.0.0+ changed the default from -1 to 0. Using -1 results in an exception in `BitMatrix::setRegion()` because of invalid top/left coordinates.
This commit is contained in:
@@ -273,7 +273,7 @@ class EncodeFragment : Fragment() {
|
||||
addQuietZoneSwitch.isChecked
|
||||
) 1 else 0
|
||||
|
||||
else -> -1
|
||||
else -> 0
|
||||
},
|
||||
if (format.canBeInverted()) {
|
||||
colorsSpinner.selectedItemPosition
|
||||
|
||||
Reference in New Issue
Block a user