save resultpoints

This commit is contained in:
Elnur Ismailzada 2019-05-13 15:25:10 +02:00
parent b63e7ff6e1
commit 04e06fa229
1 changed files with 4 additions and 1 deletions

View File

@ -165,7 +165,10 @@ Ref<Result> UPCEANReader::decodeRow(int rowNumber,
if (extensionResult) { if (extensionResult) {
decodeResult->getMetadata().put(ResultMetadata::UPC_EAN_EXTENSION, extensionResult->getText()->getText()); decodeResult->getMetadata().put(ResultMetadata::UPC_EAN_EXTENSION, extensionResult->getText()->getText());
decodeResult->getMetadata().putAll(extensionResult->getMetadata()); decodeResult->getMetadata().putAll(extensionResult->getMetadata());
decodeResult->getResultPoints() << extensionResult->getResultPoints();
for (const Ref<ResultPoint>& resultPoint: extensionResult->getResultPoints()->values()) {
decodeResult->getResultPoints()->push_back(resultPoint);
}
} }
} catch (NotFoundException const& /*nfe*/) { } catch (NotFoundException const& /*nfe*/) {
// continue // continue