Fixed multi-select rectangle on zoom

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@623 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2009-09-10 19:20:26 +00:00
parent 5636cd3f73
commit 68716b04a7
1 changed files with 7 additions and 0 deletions

View File

@ -653,6 +653,9 @@ function BatchCommand(text) {
resultList = [];
var rubberBBox = rubberBox.getBBox();
$.each(rubberBBox, function(key, val) {
rubberBBox[key] = val / current_zoom;
});
var i = curBBoxes.length;
while (i--) {
if (Utils.rectsIntersect(rubberBBox, curBBoxes[i].bbox)) {
@ -1376,6 +1379,8 @@ function BatchCommand(text) {
if (rubberBox == null) {
rubberBox = selectorManager.getRubberBandBox();
}
start_x *= current_zoom;
start_y *= current_zoom;
assignAttributes(rubberBox, {
'x': start_x,
'y': start_y,
@ -1637,6 +1642,8 @@ function BatchCommand(text) {
}
break;
case "multiselect":
x *= current_zoom;
y *= current_zoom;
assignAttributes(rubberBox, {
'x': Math.min(start_x,x),
'y': Math.min(start_y,y),