diff -Nru poppler-0.20.4/debian/changelog poppler-0.20.4/debian/changelog --- poppler-0.20.4/debian/changelog 2012-09-11 23:22:19.000000000 +0000 +++ poppler-0.20.4/debian/changelog 2012-11-10 15:40:32.000000000 +0000 @@ -1,3 +1,11 @@ +poppler (0.20.4-0ubuntu2~matttbe0) raring; urgency=low + + * debian/patches/git_gouraud_shading_support.patch: (LP: #1072129) + - Evince crashes after opening certain PDF file because parameterized + Gouraud shading is not supported. + + -- Matthieu Baerts (matttbe) Sat, 10 Nov 2012 16:36:19 +0100 + poppler (0.20.4-0ubuntu1) quantal; urgency=low * New upstream bugfix release diff -Nru poppler-0.20.4/debian/patches/git_gouraud_shading_support.patch poppler-0.20.4/debian/patches/git_gouraud_shading_support.patch --- poppler-0.20.4/debian/patches/git_gouraud_shading_support.patch 1970-01-01 00:00:00.000000000 +0000 +++ poppler-0.20.4/debian/patches/git_gouraud_shading_support.patch 2012-11-10 15:35:55.000000000 +0000 @@ -0,0 +1,38 @@ +From ae8fc0cbfc6123189e17b3cf1286e0540f181646 Mon Sep 17 00:00:00 2001 +From: Adrian Johnson +Date: Tue, 30 Oct 2012 10:52:04 +0000 +Subject: cairo: support parameterized Gouraud shading +Bug: https://bugs.freedesktop.org/show_bug.cgi?id=56463 +Bug-Ubuntu: https://bugs.launchpad.net/poppler/+bug/1072129 + +--- +Index: poppler-0.20.4/poppler/CairoOutputDev.cc +=================================================================== +--- poppler-0.20.4.orig/poppler/CairoOutputDev.cc 2012-08-30 22:31:05.000000000 +0200 ++++ poppler-0.20.4/poppler/CairoOutputDev.cc 2012-11-10 16:34:43.709141980 +0100 +@@ -945,10 +945,21 @@ + fill_pattern = cairo_pattern_create_mesh (); + + for (i = 0; i < shading->getNTriangles(); i++) { +- shading->getTriangle(i, +- &x0, &y0, &color[0], +- &x1, &y1, &color[1], +- &x2, &y2, &color[2]); ++ if (shading->isParameterized()) { ++ double color0, color1, color2; ++ shading->getTriangle(i, &x0, &y0, &color0, ++ &x1, &y1, &color1, ++ &x2, &y2, &color2); ++ shading->getParameterizedColor(color0, &color[0]); ++ shading->getParameterizedColor(color1, &color[1]); ++ shading->getParameterizedColor(color2, &color[2]); ++ } else { ++ shading->getTriangle(i, ++ &x0, &y0, &color[0], ++ &x1, &y1, &color[1], ++ &x2, &y2, &color[2]); ++ ++ } + + cairo_mesh_pattern_begin_patch (fill_pattern); + diff -Nru poppler-0.20.4/debian/patches/series poppler-0.20.4/debian/patches/series --- poppler-0.20.4/debian/patches/series 2012-09-11 23:22:19.000000000 +0000 +++ poppler-0.20.4/debian/patches/series 2012-11-10 15:34:37.000000000 +0000 @@ -1,2 +1,3 @@ ltmain-as-needed.diff qt4-visibility.diff +git_gouraud_shading_support.patch