diff options
Diffstat (limited to 'graphics/hugin/libpng14-fix.diff')
-rw-r--r-- | graphics/hugin/libpng14-fix.diff | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics/hugin/libpng14-fix.diff b/graphics/hugin/libpng14-fix.diff new file mode 100644 index 0000000000000..c6db4691a8655 --- /dev/null +++ b/graphics/hugin/libpng14-fix.diff @@ -0,0 +1,19 @@ + +diff -r 827cc1b11702 -r f978e43bbdd4 src/foreign/vigra/vigra_impex/png.cxx +--- a/src/foreign/vigra/vigra_impex/png.cxx Mon Aug 20 12:59:12 2007 +0000 ++++ b/src/foreign/vigra/vigra_impex/png.cxx Mon Feb 01 15:10:49 2010 +0000 +@@ -271,8 +271,8 @@ + // expand gray values to at least one byte size + if ( color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8 ) { + if (setjmp(png->jmpbuf)) +- vigra_postcondition( false,png_error_message.insert(0, "error in png_set_gray_1_2_4_to_8(): ").c_str()); +- png_set_gray_1_2_4_to_8(png); ++ vigra_postcondition( false,png_error_message.insert(0, "error in png_set_expand_gray_1_2_4_to_8(): ").c_str()); ++ png_set_expand_gray_1_2_4_to_8(png); + bit_depth = 8; + } + + + + + |