Skip to content

Commit 497708a

Browse files
committed
Barcode: fix compile regression in ZXING_EXPERIMENTAL_API=OFF builds
1 parent 7fbbdfc commit 497708a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/Barcode.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@ Result::Result(DecoderResult&& decodeResult, DetectorResult&& detectorResult, Ba
5656
, _json(std::move(decodeResult).json())
5757
#endif
5858
{
59+
#ifdef ZXING_EXPERIMENTAL_API
5960
// the BitMatrix stores 'black'/foreground as 0xFF and 'white'/background as 0, but we
6061
// want the ImageView returned by symbol() to be a standard luminance image (black == 0)
6162
_symbol->flipAll();
63+
#endif
6264

6365
if (decodeResult.versionNumber())
6466
snprintf(_version, 4, "%d", decodeResult.versionNumber());

0 commit comments

Comments
 (0)