Comment 3 for bug 229524

Revision history for this message
ishmal (ishmalius) wrote :

If you look at src/extension/internal/pdfinput/pdf-parser.cpp, line 1241:

void PdfParser::opRectangle(Object args[], int numArgs) {
  double x, y, w, h;

  x = args[0].getNum();
  y = args[1].getNum();
  w = args[2].getNum();
  h = args[3].getNum();
  state->moveTo(x, y); <-- HERE
  state->lineTo(x + w, y);
  state->lineTo(x + w, y + h);
  state->lineTo(x, y + h);
  state->closePath();
}

It looks like 'state' is null when state->moveTo(x,y) is called.