From c0c1a90179dd0f0e19549f279ee95cae7e577b82 Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Fri, 3 Aug 2012 21:34:00 +0200 Subject: RHEL/Fedora: some more updates for MGA2/MDV2011 building --- .../digikam/digikam-3.5.13-fix_ftbfs_png_015.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 redhat/applications/digikam/digikam-3.5.13-fix_ftbfs_png_015.patch (limited to 'redhat/applications/digikam/digikam-3.5.13-fix_ftbfs_png_015.patch') diff --git a/redhat/applications/digikam/digikam-3.5.13-fix_ftbfs_png_015.patch b/redhat/applications/digikam/digikam-3.5.13-fix_ftbfs_png_015.patch new file mode 100644 index 000000000..0522ec982 --- /dev/null +++ b/redhat/applications/digikam/digikam-3.5.13-fix_ftbfs_png_015.patch @@ -0,0 +1,30 @@ +commit 18ecd51264727c75ab3e17a762d8f95361023f0a +Author: Timothy Pearson +Date: 1340749881 -0500 + + Fix FTBFS on png >= 0.15 + +diff --git a/digikam/kioslave/digikamthumbnail.cpp b/digikam/kioslave/digikamthumbnail.cpp +index 6dba518..97acf12 100644 +--- a/digikam/kioslave/digikamthumbnail.cpp ++++ b/digikam/kioslave/digikamthumbnail.cpp +@@ -413,16 +413,16 @@ TQImage kio_digikamthumbnailProtocol::loadPNG(const TQString& path) + if (color_type == PNG_COLOR_TYPE_PALETTE) + png_set_expand(png_ptr); + +- if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA) ++ if (color_type == PNG_COLOR_TYPE_RGB_ALPHA) + has_alpha = 1; + +- if (info_ptr->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) ++ if (color_type == PNG_COLOR_TYPE_GRAY_ALPHA) + { + has_alpha = 1; + has_grey = 1; + } + +- if (info_ptr->color_type == PNG_COLOR_TYPE_GRAY) ++ if (color_type == PNG_COLOR_TYPE_GRAY) + has_grey = 1; + + unsigned char **lines; -- cgit v1.2.1