Normalize the BBox of form XObjects on the /core side

This commit is contained in:
Jani Pehkonen 2018-10-16 16:23:14 +03:00
parent ecbdc508f7
commit 9cd5f94f03
3 changed files with 7 additions and 2 deletions

View file

@ -1750,7 +1750,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
this.baseTransform = this.ctx.mozCurrentTransform;
if (Array.isArray(bbox) && bbox.length === 4) {
if (bbox) {
var width = bbox[2] - bbox[0];
var height = bbox[3] - bbox[1];
this.ctx.rect(bbox[0], bbox[1], width, height);