summaryrefslogtreecommitdiff
path: root/graphics/panomatic/patches/patch-ad
blob: d45fac74db6a39a7bd3a887b56d8f47dc07dbfbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-ad,v 1.1 2010/06/13 22:44:40 wiz Exp $

--- vigra/src/impex/png.cxx.orig	2008-02-14 23:14:15.000000000 +0000
+++ vigra/src/impex/png.cxx
@@ -270,8 +270,8 @@ namespace vigra {
         // 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;
         }