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.

When disabling the assertion the PDF appears to render correctly.

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
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to