File png14.diff of Package koffice2.3

--- trunk/koffice/krita/ui/kis_png_converter.cpp	2010/01/16 16:16:16	1075719
+++ trunk/koffice/krita/ui/kis_png_converter.cpp	2010/01/25 21:31:27	1080210
@@ -408,7 +408,12 @@
 
     png_byte signature[8];
     iod->peek((char*)signature, 8);
+
+#if PNG_LIBPNG_VER < 10400 
     if (!png_check_sig(signature, 8)) {
+#else
+    if (png_sig_cmp(signature, 0, 8) != 0) {
+#endif
         iod->close();
         return (KisImageBuilder_RESULT_BAD_FETCH);
     }
openSUSE Build Service is sponsored by