Another undeclared variable caught by strict mode

This commit is contained in:
Vivien Nicolas 2011-06-19 03:08:43 +02:00
parent 0ddf9a56a0
commit c766954ddf

2
pdf.js
View File

@ -2384,7 +2384,7 @@ var CanvasGraphics = (function() {
error("No support for array of functions");
else if (!IsPDFFunction(fnObj))
error("Invalid function");
fn = new PDFFunction(this.xref, fnObj);
var fn = new PDFFunction(this.xref, fnObj);
var gradient = this.ctx.createLinearGradient(x0, y0, x1, y1);
var step = (t1 - t0) / 10;