[poppler] GfxGouraudTriangleShading::getTriangle assert failure
Albert Astals Cid
aacid at kde.org
Sun Dec 9 11:32:57 PST 2012
El Diumenge, 9 de desembre de 2012, a les 16:45:05, Christian Feuersaenger va
escriure:
> Hi Albert,
>
> I don't, sorry. Perhaps I did not trust that case and had no suitable
> test documents at hand.
>
> Feel free to correct it.
Ok, thanks for the input :-)
Harry, still waiting for your file.
Cheers,
Albert
>
> Best regards
>
> Christian
>
> Am 08.12.2012 18:47, schrieb Albert Astals Cid:
> > El Dissabte, 8 de desembre de 2012, a les 17:27:51, Harry Roberts va
escriure:
> >> Hi,
> >>
> >> I have a PDF which raises assertion error in `
> >> GfxGouraudTriangleShading::getTriangle`.
> >>
> >> This assertion doesn't make sense, isParameterized() check if `nFuncs>
> >> 0`,
> >> but the code handles both cases.
> >
> > Christian do you remember why you added that assert?
> >
> >> When disabling the assertion the PDF appears to render correctly.
> >
> > Can we have such PDF?
> >
> > Albert
> >
> >> GfxState.cc line 4481
> >> ---------------------------------------------------------------------
> >>
> >> assert(!isParameterized());
> >>
> >> v = triangles[i][0];
> >> *x0 = vertices[v].x;
> >> *y0 = vertices[v].y;
> >> if (nFuncs> 0) {
> >>
> >> in = colToDbl(vertices[v].color.c[0]);
> >> for (j = 0; j< nFuncs; ++j) {
> >>
> >> funcs[j]->transform(&in,&out[j]);
> >>
> >> }
> >> for (j = 0; j< gfxColorMaxComps; ++j) {
> >>
> >> color0->c[j] = dblToCol(out[j]);
> >>
> >> }
> >>
> >> } else {
> >>
> >> *color0 = vertices[v].color;
> >>
> >> }
> >>
> >> ---------------------------------------------------------------------
> >>
> >>
> >> Cheers,
> >>
> >> - Harry
>
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler
More information about the poppler
mailing list