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

Bug 26910 - [Autosave] Графический объект на скопированном листе при...

Bug 26910 - [Autosave] Графический объект на скопированном листе при переоткрытии книги смещается в левый верхний угол

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58940 954022d7-b5bf-4e40-9824-e11837661b57
parent 2aab9a6d
......@@ -2156,9 +2156,10 @@ Woorksheet.prototype.copyDrawingObjects=function(oNewWs, wsFrom)
{
var drawingObject = drawingObjects.cloneDrawingObject(this.Drawings[i]);
drawingObject.graphicObject = this.Drawings[i].graphicObject.copy();
drawingObject.graphicObject.setDrawingBaseCoords(this.Drawings[i].from.col, this.Drawings[i].from.colOff, this.Drawings[i].from.row, this.Drawings[i].from.rowOff, this.Drawings[i].to.col, this.Drawings[i].to.colOff, this.Drawings[i].to.row, this.Drawings[i].to.rowOff)
drawingObject.graphicObject.setWorksheet(oNewWs);
drawingObject.graphicObject.addToDrawingObjects();
var drawingBase = this.Drawings[i];
drawingObject.graphicObject.setDrawingBaseCoords(drawingBase.from.col, drawingBase.from.colOff, drawingBase.from.row, drawingBase.from.rowOff, drawingBase.to.col, drawingBase.to.colOff, drawingBase.to.row, drawingBase.to.rowOff);
oNewWs.Drawings[oNewWs.Drawings.length - 1] = drawingObject;
}
NEW_WORKSHEET_DRAWING_DOCUMENT = null;
......
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