Commit 75ae3538 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

правка бага 21497 - [Charts] Не выделяются несколько диаграмм с помощью ctrl

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50906 954022d7-b5bf-4e40-9824-e11837661b57
parent d2d45ad4
...@@ -279,20 +279,21 @@ function NullState(drawingObjectsController, drawingObjects) ...@@ -279,20 +279,21 @@ function NullState(drawingObjectsController, drawingObjects)
this.drawingObjects.OnUpdateOverlay(); this.drawingObjects.OnUpdateOverlay();
return; return;
} }
this.drawingObjectsController.clearPreTrackObjects();
var is_selected = cur_drawing.selected;
if(!(e.CtrlKey || e.ShiftKey) && !is_selected)
this.drawingObjectsController.resetSelection();
cur_drawing.select(this.drawingObjectsController);
this.drawingObjects.OnUpdateOverlay();
for(var j = 0; j < selected_objects.length; ++j)
{
this.drawingObjectsController.addPreTrackObject(selected_objects[j].createMoveTrack());
}
this.drawingObjectsController.changeCurrentState(new PreMoveState(this.drawingObjectsController, this.drawingObjects,x, y, e.ShiftKey, e.ctrl, cur_drawing, is_selected, true));
return;
} }
this.drawingObjectsController.clearPreTrackObjects();
var is_selected = cur_drawing.selected;
if(!(e.CtrlKey || e.ShiftKey) && !is_selected)
this.drawingObjectsController.resetSelection();
cur_drawing.select(this.drawingObjectsController);
this.drawingObjects.OnUpdateOverlay();
for(var j = 0; j < selected_objects.length; ++j)
{
this.drawingObjectsController.addPreTrackObject(selected_objects[j].createMoveTrack());
}
this.drawingObjectsController.changeCurrentState(new PreMoveState(this.drawingObjectsController, this.drawingObjects,x, y, e.ShiftKey, e.ctrl, cur_drawing, is_selected, true));
return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment