Skip to content

Commit

Permalink
Don’t use CTM if we don’t have one.
Browse files Browse the repository at this point in the history
Fixes #46
  • Loading branch information
thvitt committed Sep 26, 2019
1 parent 7ee401d commit d00b46f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions svg_rendering/page/js-gen/svg-utils.js
Expand Up @@ -242,8 +242,9 @@ if (window.SvgUtils === undefined) {
}

var inv = matrix.inverse();

inv = inv.multiply(element.getCTM());
var ctm = element.getCTM();
if (ctm)
inv = inv.multiply(ctm);

// create an array of SVGPoints for each corner
// of the bounding box and update their location
Expand Down

0 comments on commit d00b46f

Please sign in to comment.