From ebe8e87b342edef02b87d04c85824ce4d9245fef Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 21 Jan 2020 15:02:42 +0300 Subject: [PATCH] [SSE] Fix Bug 44219 (#308) --- apps/spreadsheeteditor/main/app/controller/Toolbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index 68f5d6bef..6552b51ec 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -980,7 +980,7 @@ define([ if (props) { (ischartedit) ? props.changeType(type) : props.putType(type); var range = props.getRange(), - isvalid = me.api.asc_checkDataRange(Asc.c_oAscSelectionDialogType.Chart, range, true, !props.getInColumns(), props.getType()); + isvalid = (!_.isEmpty(range)) ? me.api.asc_checkDataRange(Asc.c_oAscSelectionDialogType.Chart, range, true, !props.getInColumns(), props.getType()) : Asc.c_oAscError.ID.No; if (isvalid == Asc.c_oAscError.ID.No) { (ischartedit) ? me.api.asc_editChartDrawingObject(props) : me.api.asc_addChartDrawingObject(props); } else {