diff --git a/src/zxing/zxing/oned/UPCEANReader.cpp b/src/zxing/zxing/oned/UPCEANReader.cpp index 9fe2718..8bf4d84 100644 --- a/src/zxing/zxing/oned/UPCEANReader.cpp +++ b/src/zxing/zxing/oned/UPCEANReader.cpp @@ -161,15 +161,15 @@ Ref UPCEANReader::decodeRow(int rowNumber, Ref decodeResult (new Result(resultString, ArrayRef(), resultPoints, format)); try { - Ref extensionResult = extensionReader.decodeRow(rowNumber, row, endRange[1]); - if (extensionResult) { - decodeResult->getMetadata().put(ResultMetadata::UPC_EAN_EXTENSION, extensionResult->getText()->getText()); - decodeResult->getMetadata().putAll(extensionResult->getMetadata()); + Ref extensionResult = extensionReader.decodeRow(rowNumber, row, endRange[1]); + if (extensionResult) { + decodeResult->getMetadata().put(ResultMetadata::UPC_EAN_EXTENSION, extensionResult->getText()->getText()); + decodeResult->getMetadata().putAll(extensionResult->getMetadata()); - for (const Ref& resultPoint: extensionResult->getResultPoints()->values()) { - decodeResult->getResultPoints()->push_back(resultPoint); - } + for (const Ref& resultPoint: extensionResult->getResultPoints()->values()) { + decodeResult->getResultPoints()->push_back(resultPoint); } + } } catch (NotFoundException const& /*nfe*/) { // continue }