Commit 34e215f1 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

заглушка против сброса селекта при удалении графических объектов.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@52241 954022d7-b5bf-4e40-9824-e11837661b57
parent df7dd268
...@@ -821,10 +821,12 @@ DrawingObjectsController.prototype = ...@@ -821,10 +821,12 @@ DrawingObjectsController.prototype =
break; break;
} }
History.Create_NewPoint(); History.Create_NewPoint();
this.bNoResetSeclectionState = true;
for(var i = drawingObjectsController.selectedObjects.length-1; i > -1 ; --i) for(var i = drawingObjectsController.selectedObjects.length-1; i > -1 ; --i)
{ {
drawingObjectsController.selectedObjects[i].deleteDrawingBase(); drawingObjectsController.selectedObjects[i].deleteDrawingBase();
} }
this.bNoResetSeclectionState = false;
drawingObjectsController.resetSelectionState2(); drawingObjectsController.resetSelectionState2();
drawingObjectsController.updateSelectionState(drawingObjectsController.drawingObjects.drawingDocument); drawingObjectsController.updateSelectionState(drawingObjectsController.drawingObjects.drawingDocument);
break; break;
...@@ -870,6 +872,8 @@ DrawingObjectsController.prototype = ...@@ -870,6 +872,8 @@ DrawingObjectsController.prototype =
resetSelectionState: function() resetSelectionState: function()
{ {
if(this.bNoResetSeclectionState === true)
return;
var count = this.selectedObjects.length; var count = this.selectedObjects.length;
while(count > 0) while(count > 0)
{ {
......
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