Commit c51991a7 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

Очиска кэша диаграммы при вставке(Bug 26436 )

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58971 954022d7-b5bf-4e40-9824-e11837661b57
parent 206def58
......@@ -897,13 +897,18 @@ CChartSpace.prototype =
{
if( this.checkIntersectionChangedRange(data))
{
this.handleUpdateInternalChart();
this.recalcInfo.recalculateReferences = true;
this.checkSeriesRefs(this.clearCacheVal);
this.checkRemoveCache();
this.recalculate();
}
},
checkRemoveCache: function()
{
this.handleUpdateInternalChart();
this.recalcInfo.recalculateReferences = true;
this.checkSeriesRefs(this.clearCacheVal);
},
getTypeSubType: function()
{
var type = null, subtype = null;
......
......@@ -83,6 +83,8 @@ CGroupShape.prototype =
this.bDeleted = pr;
},
setBDeleted2: function(pr)
{
this.bDeleted = pr;
......@@ -99,6 +101,14 @@ CGroupShape.prototype =
}
},
checkRemoveCache: function()
{
for(var i = 0; i < this.spTree.length; ++i)
{
this.spTree[i].checkRemoveCache && this.spTree[i].checkRemoveCache();
}
},
documentUpdateSelectionState: function()
{
if(this.selection.textSelection)
......
......@@ -3102,7 +3102,8 @@
drawingObject.graphicObject.setDrawingObjects(ws.objectRender);
drawingObject.graphicObject.setWorksheet(ws.model);
drawingObject.graphicObject.checkRemoveCache && drawingObject.graphicObject.checkRemoveCache();
//drawingObject.graphicObject.setDrawingDocument(ws.objectRender.drawingDocument);
drawingObject.graphicObject.addToDrawingObjects();
......@@ -3222,8 +3223,9 @@
drawingObject.graphicObject.setDrawingObjects(ws.objectRender);
drawingObject.graphicObject.setWorksheet(ws.model);
//drawingObject.graphicObject.setDrawingDocument(ws.objectRender.drawingDocument);
drawingObject.graphicObject.checkRemoveCache && drawingObject.graphicObject.checkRemoveCache();
//drawingObject.graphicObject.setDrawingDocument(ws.objectRender.drawingDocument);
drawingObject.graphicObject.recalculate();
drawingObject.graphicObject.addToDrawingObjects();
drawingObject.graphicObject.recalculateTransform();
......
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