From 568589744cda3cb41c779306127ca381362243f8 Mon Sep 17 00:00:00 2001 From: Sergey Luzyanin Date: Mon, 9 Feb 2026 22:10:32 +0300 Subject: [PATCH] [bug] fix bug 79916 --- common/Charts/DrawingObjects.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/Charts/DrawingObjects.js b/common/Charts/DrawingObjects.js index 2aad69c785..9d90fd6732 100644 --- a/common/Charts/DrawingObjects.js +++ b/common/Charts/DrawingObjects.js @@ -1475,7 +1475,8 @@ CSparklineView.prototype.setMinMaxValAx = function(minVal, maxVal, oSparklineGro DrawingBase.prototype._getGraphicObjectCoords = function() { var _t = this; - + if (!this.worksheet) + return null; if ( _t.isGraphicObject() ) { var ret = {Pos:{}, ext: {}, from: {}, to: {}}; var rot = AscFormat.isRealNumber(_t.graphicObject.rot) ? _t.graphicObject.rot : 0; @@ -1535,6 +1536,8 @@ CSparklineView.prototype.setMinMaxValAx = function(minVal, maxVal, oSparklineGro DrawingBase.prototype.setGraphicObjectCoords = function() { var _t = this; + if (!this.worksheet) + return; var oCoords = this._getGraphicObjectCoords(); if(oCoords) { @@ -1609,6 +1612,8 @@ CSparklineView.prototype.setMinMaxValAx = function(minVal, maxVal, oSparklineGro DrawingBase.prototype.checkBoundsFromTo = function() { var _t = this; + if (!this.worksheet) + return; if ( _t.isGraphicObject() && _t.graphicObject.bounds) {