From 8f72a66fe74fdedaeab4bcf00c15f4048a58a073 Mon Sep 17 00:00:00 2001 From: "Sergey.Luzyanin" <Sergey.Luzyanin@OnlyOffice.com> Date: Wed, 29 Oct 2014 16:28:19 +0000 Subject: [PATCH] =?UTF-8?q?=D0=B7=D0=B0=D0=B3=D0=BB=D1=83=D1=88=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=B4=D0=BB=D1=8F=20=D1=81=D0=BE=D1=85=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59319 954022d7-b5bf-4e40-9824-e11837661b57 --- Common/Charts/DrawingObjects.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Common/Charts/DrawingObjects.js b/Common/Charts/DrawingObjects.js index 402a9eb2e..6876ed46d 100644 --- a/Common/Charts/DrawingObjects.js +++ b/Common/Charts/DrawingObjects.js @@ -2944,6 +2944,8 @@ function DrawingObjects() { _this.rebuildChartGraphicObjects = function(data) { + if(!worksheet) + return; ExecuteNoHistory(function(){ var wsViews = Asc["editor"].wb.wsViews; var changedArr = []; @@ -2970,7 +2972,7 @@ function DrawingObjects() { { if(wsViews[i]) { - wsViews[i].objectRender.rebuildCharts(changedArr); + wsViews[i].objectRender && wsViews[i].objectRender.rebuildCharts(changedArr); } } }, _this, []); @@ -3374,7 +3376,6 @@ function DrawingObjects() { graphicObject.updateChartReferences(oldWorksheet, newWorksheet); } } - }, this, []); }; @@ -3608,7 +3609,7 @@ function DrawingObjects() { }; _this.selectedGraphicObjectsExists = function() { - return _this.controller.selectedObjects.length > 0; + return _this.controller && _this.controller.selectedObjects.length > 0; }; _this.loadImageRedraw = function(imageUrl) { -- 2.30.9