freebsd-ports/graphics/gwenview/files/patch-src_imageutils_jpegcontent.cpp
Boris Samorodov 284140b5d2 . update graphics/exiv2 to the new version;
. bump ports which depends upon libexiv2.so
  (the library was bumpted from *.so.3 to *.so.7);
. mark current graphics/py-exiv2 as broken since it doesn't compile
  with new libexiv2; this should change with graphics/py-exiv2-0.2.

PR:		ports/131376
Submitted by:	bsam (me)
Discussed with:	kde@
Approved by:	maintainer timeout (5 weeks)
2009-03-11 22:19:40 +00:00

22 lines
717 B
C++

--- src/imageutils/jpegcontent.cpp.orig 2007-09-15 19:46:17.000000000 +0600
+++ src/imageutils/jpegcontent.cpp 2009-01-09 14:24:04.000000000 +0500
@@ -589,7 +589,8 @@
QImage JPEGContent::thumbnail() const {
QImage image;
if (!d->mExifData.empty()) {
- Exiv2::DataBuf thumbnail = d->mExifData.copyThumbnail();
+ Exiv2::ExifThumbC thumb(d->mExifData);
+ Exiv2::DataBuf const thumbnail = thumb.copy();
image.loadFromData(thumbnail.pData_, thumbnail.size_);
}
return image;
@@ -611,7 +612,8 @@
return;
}
- d->mExifData.setJpegThumbnail((unsigned char*)array.data(), array.size());
+ Exiv2::ExifThumb thumb(d->mExifData);
+ thumb.setJpegThumbnail((unsigned char*)array.data(), array.size());
}