Commit cb67ab1a authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

http://bugzserver/show_bug.cgi?id=25169 - Ошибка в консоли при копировании...

http://bugzserver/show_bug.cgi?id=25169 -  Ошибка в консоли при копировании диаграммы из группы, которая была скопированна ранее

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57104 954022d7-b5bf-4e40-9824-e11837661b57
parent f7aec214
...@@ -2751,12 +2751,20 @@ ...@@ -2751,12 +2751,20 @@
if(oDrawing.isGroup() && oDrawing.graphicObject.selectedObjects && oDrawing.graphicObject.selectedObjects.length) if(oDrawing.isGroup() && oDrawing.graphicObject.selectedObjects && oDrawing.graphicObject.selectedObjects.length)
{ {
var oDrawingSelected = oDrawing.graphicObject.selectedObjects; var oDrawingSelected = oDrawing.graphicObject.selectedObjects;
var curDrawing; var curDrawing, graphicObject;
for(var selDr = 0; selDr < oDrawingSelected.length; selDr++) for(var selDr = 0; selDr < oDrawingSelected.length; selDr++)
{ {
curDrawing = oDrawingSelected[selDr]; curDrawing = oDrawingSelected[selDr];
oDrawing = curDrawing.drawingBase; oDrawing = curDrawing.drawingBase;
//меняем graphicObject на время записи
graphicObject = oDrawing.graphicObject;
oDrawing.graphicObject = curDrawing;
this.bs.WriteItem(c_oSerWorksheetsTypes.Drawing, function(){oThis.WriteDrawing(oDrawing, curDrawing);}); this.bs.WriteItem(c_oSerWorksheetsTypes.Drawing, function(){oThis.WriteDrawing(oDrawing, curDrawing);});
//возвращаем graphicObject обратно
oDrawing.graphicObject = graphicObject;
} }
} }
else else
......
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