Hello community,

here is the log from the commit of package kdegraphics-thumbnailers for 
openSUSE:Factory checked in at 2018-02-14 09:37:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kdegraphics-thumbnailers (Old)
 and      /work/SRC/openSUSE:Factory/.kdegraphics-thumbnailers.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kdegraphics-thumbnailers"

Wed Feb 14 09:37:17 2018 rev:89 rq:575016 version:17.12.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/kdegraphics-thumbnailers/kdegraphics-thumbnailers.changes
        2018-01-22 16:12:54.597675708 +0100
+++ 
/work/SRC/openSUSE:Factory/.kdegraphics-thumbnailers.new/kdegraphics-thumbnailers.changes
   2018-02-14 09:37:20.791035019 +0100
@@ -1,0 +2,10 @@
+Wed Feb 07 08:47:45 CET 2018 - lbeltr...@kde.org
+
+- Update to 17.12.2
+  * New bugfix release
+  * For more details please see:
+  * https://www.kde.org/announcements/announce-applications-17.12.2.php
+- Changes since 17.12.1:
+  * gs thumbnailer: Make it work when gs spits out warning messages
+
+-------------------------------------------------------------------

Old:
----
  kdegraphics-thumbnailers-17.12.1.tar.xz

New:
----
  kdegraphics-thumbnailers-17.12.2.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kdegraphics-thumbnailers.spec ++++++
--- /var/tmp/diff_new_pack.h0axoi/_old  2018-02-14 09:37:21.583006325 +0100
+++ /var/tmp/diff_new_pack.h0axoi/_new  2018-02-14 09:37:21.583006325 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           kdegraphics-thumbnailers
-Version:        17.12.1
+Version:        17.12.2
 Release:        0
 %define kf5_version 5.26.0
 # Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)

++++++ kdegraphics-thumbnailers-17.12.1.tar.xz -> 
kdegraphics-thumbnailers-17.12.2.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdegraphics-thumbnailers-17.12.1/ps/gscreator.cpp 
new/kdegraphics-thumbnailers-17.12.2/ps/gscreator.cpp
--- old/kdegraphics-thumbnailers-17.12.1/ps/gscreator.cpp       2016-12-20 
13:05:30.000000000 +0100
+++ new/kdegraphics-thumbnailers-17.12.2/ps/gscreator.cpp       2018-01-14 
19:51:59.000000000 +0100
@@ -447,7 +447,18 @@
   }
   close(output[0]);
 
-  int l = img.loadFromData( data );
+  bool loaded = img.loadFromData( data );
+
+  if (!loaded) {
+    // Sometimes gs spits some warning messages before the actual image
+    // try to skip them
+    const QByteArray pngHeader = "\x89\x50\x4E\x47\x0D\x0A\x1A\x0A";
+    const int pngMarkerIndex = data.indexOf(pngHeader);
+    if (pngMarkerIndex > 0) {
+      data = data.mid(pngMarkerIndex);
+      loaded = img.loadFromData( data );
+    }
+  }
 
   if ( got_sig_term &&
        oldhandler != SIG_ERR &&
@@ -457,7 +468,7 @@
   }
   if ( oldhandler != SIG_ERR ) signal( SIGTERM, oldhandler );
 
-  return ok && l;
+  return ok && loaded;
 }
 
 ThumbCreator::Flags GSCreator::flags() const


Reply via email to