Commit 70a2f9e8 authored by SergeyLuzyanin's avatar SergeyLuzyanin

connectors

parent 11b1d98e
...@@ -488,7 +488,9 @@ ChangeAdjState.prototype = ...@@ -488,7 +488,9 @@ ChangeAdjState.prototype =
return; return;
} }
var t = AscFormat.CheckCoordsNeedPage(x, y, pageIndex, this.majorObject.selectStartPage, this.drawingObjects.getDrawingDocument()); var t = AscFormat.CheckCoordsNeedPage(x, y, pageIndex, this.majorObject.selectStartPage, this.drawingObjects.getDrawingDocument());
this.drawingObjects.arrTrackObjects[0].track(t.x, t.y); for(var i = 0; i < this.drawingObjects.arrTrackObjects.length; ++i){
this.drawingObjects.arrTrackObjects[i].track(t.x, t.y);
}
this.drawingObjects.updateOverlay(); this.drawingObjects.updateOverlay();
}, },
...@@ -496,11 +498,13 @@ ChangeAdjState.prototype = ...@@ -496,11 +498,13 @@ ChangeAdjState.prototype =
{ {
if(this.drawingObjects.isViewMode() === false) if(this.drawingObjects.isViewMode() === false)
{ {
var track = this.drawingObjects.arrTrackObjects[0]; var trackObjects = this.drawingObjects.arrTrackObjects;
var drawingObjects = this.drawingObjects; var drawingObjects = this.drawingObjects;
this.drawingObjects.checkSelectedObjectsAndCallback(function() this.drawingObjects.checkSelectedObjectsAndCallback(function()
{ {
track.trackEnd(); for(var i = 0; i < trackObjects.length; ++i){
trackObjects[i].trackEnd();
}
drawingObjects.startRecalculate(); drawingObjects.startRecalculate();
},[], false, AscDFH.historydescription_CommonDrawings_ChangeAdj); },[], false, AscDFH.historydescription_CommonDrawings_ChangeAdj);
......
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