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

заглушка для сохранения

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59319 954022d7-b5bf-4e40-9824-e11837661b57
parent 32f9ef42
...@@ -2944,6 +2944,8 @@ function DrawingObjects() { ...@@ -2944,6 +2944,8 @@ function DrawingObjects() {
_this.rebuildChartGraphicObjects = function(data) _this.rebuildChartGraphicObjects = function(data)
{ {
if(!worksheet)
return;
ExecuteNoHistory(function(){ ExecuteNoHistory(function(){
var wsViews = Asc["editor"].wb.wsViews; var wsViews = Asc["editor"].wb.wsViews;
var changedArr = []; var changedArr = [];
...@@ -2970,7 +2972,7 @@ function DrawingObjects() { ...@@ -2970,7 +2972,7 @@ function DrawingObjects() {
{ {
if(wsViews[i]) if(wsViews[i])
{ {
wsViews[i].objectRender.rebuildCharts(changedArr); wsViews[i].objectRender && wsViews[i].objectRender.rebuildCharts(changedArr);
} }
} }
}, _this, []); }, _this, []);
...@@ -3374,7 +3376,6 @@ function DrawingObjects() { ...@@ -3374,7 +3376,6 @@ function DrawingObjects() {
graphicObject.updateChartReferences(oldWorksheet, newWorksheet); graphicObject.updateChartReferences(oldWorksheet, newWorksheet);
} }
} }
}, this, []); }, this, []);
}; };
...@@ -3608,7 +3609,7 @@ function DrawingObjects() { ...@@ -3608,7 +3609,7 @@ function DrawingObjects() {
}; };
_this.selectedGraphicObjectsExists = function() { _this.selectedGraphicObjectsExists = function() {
return _this.controller.selectedObjects.length > 0; return _this.controller && _this.controller.selectedObjects.length > 0;
}; };
_this.loadImageRedraw = function(imageUrl) { _this.loadImageRedraw = function(imageUrl) {
......
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