Skip to content

Commit

Permalink
Merge pull request #56 from StalderT/patch-2
Browse files Browse the repository at this point in the history
Update svgcanvas.js
  • Loading branch information
codedread committed Jan 16, 2016
2 parents 971aa98 + 5a53470 commit f47eb1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions editor/svgcanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,12 @@ var getIntersectionList = this.getIntersectionList = function(rect) {
var rubberBBox;
if (!rect) {
rubberBBox = rubberBox.getBBox();
var o, bb = {};

for (o in rubberBBox) {
bb[o] = rubberBBox[o] / current_zoom;
}
rubberBBox = bb;
} else {
rubberBBox = svgcontent.createSVGRect(rect.x, rect.y, rect.width, rect.height);
}
Expand Down

0 comments on commit f47eb1a

Please sign in to comment.