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 = ...@@ -897,13 +897,18 @@ CChartSpace.prototype =
{ {
if( this.checkIntersectionChangedRange(data)) if( this.checkIntersectionChangedRange(data))
{ {
this.handleUpdateInternalChart(); this.checkRemoveCache();
this.recalcInfo.recalculateReferences = true;
this.checkSeriesRefs(this.clearCacheVal);
this.recalculate(); this.recalculate();
} }
}, },
checkRemoveCache: function()
{
this.handleUpdateInternalChart();
this.recalcInfo.recalculateReferences = true;
this.checkSeriesRefs(this.clearCacheVal);
},
getTypeSubType: function() getTypeSubType: function()
{ {
var type = null, subtype = null; var type = null, subtype = null;
......
...@@ -83,6 +83,8 @@ CGroupShape.prototype = ...@@ -83,6 +83,8 @@ CGroupShape.prototype =
this.bDeleted = pr; this.bDeleted = pr;
}, },
setBDeleted2: function(pr) setBDeleted2: function(pr)
{ {
this.bDeleted = pr; this.bDeleted = pr;
...@@ -99,6 +101,14 @@ CGroupShape.prototype = ...@@ -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() documentUpdateSelectionState: function()
{ {
if(this.selection.textSelection) if(this.selection.textSelection)
......
...@@ -3102,7 +3102,8 @@ ...@@ -3102,7 +3102,8 @@
drawingObject.graphicObject.setDrawingObjects(ws.objectRender); drawingObject.graphicObject.setDrawingObjects(ws.objectRender);
drawingObject.graphicObject.setWorksheet(ws.model); drawingObject.graphicObject.setWorksheet(ws.model);
drawingObject.graphicObject.checkRemoveCache && drawingObject.graphicObject.checkRemoveCache();
//drawingObject.graphicObject.setDrawingDocument(ws.objectRender.drawingDocument); //drawingObject.graphicObject.setDrawingDocument(ws.objectRender.drawingDocument);
drawingObject.graphicObject.addToDrawingObjects(); drawingObject.graphicObject.addToDrawingObjects();
...@@ -3222,8 +3223,9 @@ ...@@ -3222,8 +3223,9 @@
drawingObject.graphicObject.setDrawingObjects(ws.objectRender); drawingObject.graphicObject.setDrawingObjects(ws.objectRender);
drawingObject.graphicObject.setWorksheet(ws.model); 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.recalculate();
drawingObject.graphicObject.addToDrawingObjects(); drawingObject.graphicObject.addToDrawingObjects();
drawingObject.graphicObject.recalculateTransform(); 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