Fixed build

This commit is contained in:
emeric
2024-12-18 15:18:46 +01:00
parent dfa03abfef
commit d49d718922
@@ -67,9 +67,12 @@ namespace lms::scanner
try try
{ {
std::unique_ptr<image::IRawImage> rawImage{ image::decodeImage(_file) }; std::unique_ptr<image::IRawImage> rawImage{ image::decodeImage(_file) };
ImageInfo& imageInfo{ _parsedImageInfo.emplace() };
ImageInfo imageInfo;
imageInfo.width = rawImage->getWidth(); imageInfo.width = rawImage->getWidth();
imageInfo.height = rawImage->getHeight(); imageInfo.height = rawImage->getHeight();
_parsedImageInfo = imageInfo;
} }
catch (const image::Exception& e) catch (const image::Exception& e)
{ {