Skip to content

Commit

Permalink
ReadBarcode: fix #847 (textMode option not passed to result)
Browse files Browse the repository at this point in the history
  • Loading branch information
axxel committed Oct 11, 2024
1 parent e9475f2 commit 81407a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/ReadBarcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Barcodes ReadBarcodes(const ImageView& _iv, const ReaderOptions& opts)
MultiFormatReader reader(opts);

if (opts.isPure())
return {reader.read(*CreateBitmap(opts.binarizer(), iv))};
return {reader.read(*CreateBitmap(opts.binarizer(), iv)).setReaderOptions(opts)};

std::unique_ptr<MultiFormatReader> closedReader;
#ifdef ZXING_EXPERIMENTAL_API
Expand Down

0 comments on commit 81407a0

Please sign in to comment.