From 5a5347045c849917f79506712dcb82c28c7bb25e Mon Sep 17 00:00:00 2001 From: StalderT Date: Sat, 16 Jan 2016 19:40:29 +0100 Subject: [PATCH] Update svgcanvas.js correct https://github.com/SVG-Edit/svgedit/issues/55 --- editor/svgcanvas.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 765362b6..0bb58bc1 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -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); }