aboutsummaryrefslogtreecommitdiff
path: root/graphics/gwenview-kde4/files/patch-src_imageutils_jpegcontent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/gwenview-kde4/files/patch-src_imageutils_jpegcontent.cpp')
-rw-r--r--graphics/gwenview-kde4/files/patch-src_imageutils_jpegcontent.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/graphics/gwenview-kde4/files/patch-src_imageutils_jpegcontent.cpp b/graphics/gwenview-kde4/files/patch-src_imageutils_jpegcontent.cpp
new file mode 100644
index 000000000000..48943654ed68
--- /dev/null
+++ b/graphics/gwenview-kde4/files/patch-src_imageutils_jpegcontent.cpp
@@ -0,0 +1,22 @@
+--- 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());
+ }
+
+