| @@ -1,15 +1,16 @@ | | | @@ -1,15 +1,16 @@ |
1 | $NetBSD: patch-aa,v 1.15 2011/01/16 10:38:44 wiz Exp $ | | 1 | $NetBSD: patch-aa,v 1.16 2011/01/24 16:06:36 wiz Exp $ |
2 | | | 2 | |
3 | FIx build with png-1.5. | | 3 | Fix build with png-1.5. |
| | | 4 | https://bugs.kde.org/show_bug.cgi?id=264184 |
4 | | | 5 | |
5 | --- common/libkipiplugins/tools/kpwriteimage.cpp.orig 2010-11-22 17:24:50.000000000 +0000 | | 6 | --- common/libkipiplugins/tools/kpwriteimage.cpp.orig 2010-11-22 17:24:50.000000000 +0000 |
6 | +++ common/libkipiplugins/tools/kpwriteimage.cpp | | 7 | +++ common/libkipiplugins/tools/kpwriteimage.cpp |
7 | @@ -399,7 +399,7 @@ bool KPWriteImage::write2PNG(const QStri | | 8 | @@ -399,7 +399,7 @@ bool KPWriteImage::write2PNG(const QStri |
8 | if (!d->iccProfile.isEmpty()) | | 9 | if (!d->iccProfile.isEmpty()) |
9 | { | | 10 | { |
10 | png_set_iCCP(png_ptr, info_ptr, (png_charp)"icc", PNG_COMPRESSION_TYPE_BASE, | | 11 | png_set_iCCP(png_ptr, info_ptr, (png_charp)"icc", PNG_COMPRESSION_TYPE_BASE, |
11 | - d->iccProfile.data(), d->iccProfile.size()); | | 12 | - d->iccProfile.data(), d->iccProfile.size()); |
12 | + (png_bytep)d->iccProfile.data(), d->iccProfile.size()); | | 13 | + (png_bytep)d->iccProfile.data(), d->iccProfile.size()); |
13 | } | | 14 | } |
14 | | | 15 | |
15 | // Write Software info. | | 16 | // Write Software info. |