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

Bug 24214 - Ошибка в консоли при изменении границ обтекания автофигуры

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56805 954022d7-b5bf-4e40-9824-e11837661b57
parent 604ea621
...@@ -1252,6 +1252,10 @@ ChangeWrapContour.prototype.onMouseUp = function(e, x, y, pageIndex) ...@@ -1252,6 +1252,10 @@ ChangeWrapContour.prototype.onMouseUp = function(e, x, y, pageIndex)
} }
this.majorObject.parent.wrappingPolygon.setEdited(true); this.majorObject.parent.wrappingPolygon.setEdited(true);
this.majorObject.parent.wrappingPolygon.setArrRelPoints(calc_points2); this.majorObject.parent.wrappingPolygon.setArrRelPoints(calc_points2);
var nearest_pos = this.drawingObjects.document.Get_NearestPos(this.majorObject.selectStartPage, this.majorObject.posX + this.majorObject.bounds.x, this.majorObject.posY + this.majorObject.bounds.y, true, this.majorObject.parent);
this.majorObject.parent.Remove_FromDocument(false);
this.majorObject.parent.Set_XYForAdd(this.majorObject.posX + this.majorObject.bounds.x, this.majorObject.posY + this.majorObject.bounds.y, nearest_pos, this.majorObject.selectStartPage);
this.majorObject.parent.Add_ToDocument2(this.majorObject.parent.Get_ParentParagraph());
this.drawingObjects.document.Recalculate(); this.drawingObjects.document.Recalculate();
} }
this.drawingObjects.clearTrackObjects(); this.drawingObjects.clearTrackObjects();
...@@ -1336,6 +1340,10 @@ ChangeWrapContourAddPoint.prototype.onMouseUp = function(e, x, y, pageIndex) ...@@ -1336,6 +1340,10 @@ ChangeWrapContourAddPoint.prototype.onMouseUp = function(e, x, y, pageIndex)
} }
this.majorObject.parent.wrappingPolygon.setEdited(true); this.majorObject.parent.wrappingPolygon.setEdited(true);
this.majorObject.parent.wrappingPolygon.setArrRelPoints(calc_points2); this.majorObject.parent.wrappingPolygon.setArrRelPoints(calc_points2);
var nearest_pos = this.drawingObjects.document.Get_NearestPos(this.majorObject.selectStartPage, this.majorObject.posX + this.majorObject.bounds.x, this.majorObject.posY + this.majorObject.bounds.y, true, this.majorObject.parent);
this.majorObject.parent.Remove_FromDocument(false);
this.majorObject.parent.Set_XYForAdd(this.majorObject.posX + this.majorObject.bounds.x, this.majorObject.posY + this.majorObject.bounds.y, nearest_pos, this.majorObject.selectStartPage);
this.majorObject.parent.Add_ToDocument2(this.majorObject.parent.Get_ParentParagraph());
this.drawingObjects.document.Recalculate(); this.drawingObjects.document.Recalculate();
} }
this.drawingObjects.clearTrackObjects(); this.drawingObjects.clearTrackObjects();
......
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