Commit 84c6c47f authored by Alex Richardson's avatar Alex Richardson
Browse files

Fix building against Exiv2 main branch

The current main branch of Exiv2 has an API change that makes these
fields private:
parent a3d60fbf
Pipeline #126746 passed with stage
in 8 minutes and 14 seconds
......@@ -559,7 +559,11 @@ QImage JpegContent::thumbnail() const
Exiv2::DataBuf thumbnail = d->mExifData.copyThumbnail();
#if (EXIV2_TEST_VERSION(0, 28, 0))
image.loadFromData(, thumbnail.size());
image.loadFromData(thumbnail.pData_, thumbnail.size_);
auto it = d->mExifData.findKey(Exiv2::ExifKey("Exif.Canon.ThumbnailImageValidArea"));
// ensure ThumbnailImageValidArea actually specifies a rectangle, i.e. there must be 4 coordinates
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment