Commit 4ac6161c authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix bug 32358

parent cabed1a3
...@@ -269,8 +269,8 @@ ChartPreviewManager.prototype.getChartByType = function(type) ...@@ -269,8 +269,8 @@ ChartPreviewManager.prototype.getChartByType = function(type)
var chartSeries = {series: this.getAscChartSeriesDefault(type), parsedHeaders: {bLeft: true, bTop: true}}; var chartSeries = {series: this.getAscChartSeriesDefault(type), parsedHeaders: {bLeft: true, bTop: true}};
var chart_space = AscFormat.DrawingObjectsController.prototype._getChartSpace(chartSeries, settings, true); var chart_space = AscFormat.DrawingObjectsController.prototype._getChartSpace(chartSeries, settings, true);
chart_space.bPreview = true; chart_space.bPreview = true;
if (Asc.editor && AscCommon.c_oEditorId.Spreadsheet === Asc.editor.getEditorId()) { if (Asc['editor'] && AscCommon.c_oEditorId.Spreadsheet === Asc['editor'].getEditorId()) {
var api_sheet = Asc.editor; var api_sheet = Asc['editor'];
chart_space.setWorksheet(api_sheet.wb.getWorksheet().model); chart_space.setWorksheet(api_sheet.wb.getWorksheet().model);
} else { } else {
if (editor && editor.WordControl && editor.WordControl.m_oLogicDocument.Slides && if (editor && editor.WordControl && editor.WordControl.m_oLogicDocument.Slides &&
...@@ -825,8 +825,8 @@ TextArtPreviewManager.prototype.getShape = function() ...@@ -825,8 +825,8 @@ TextArtPreviewManager.prototype.getShape = function()
var oShape = new AscFormat.CShape(); var oShape = new AscFormat.CShape();
var oParent = null, oWorkSheet = null; var oParent = null, oWorkSheet = null;
var bWord = true; var bWord = true;
if (Asc.editor && AscCommon.c_oEditorId.Spreadsheet === Asc.editor.getEditorId()) { if (Asc['editor'] && AscCommon.c_oEditorId.Spreadsheet === Asc['editor'].getEditorId()) {
var api_sheet = Asc.editor; var api_sheet = Asc['editor'];
oShape.setWorksheet(api_sheet.wb.getWorksheet().model); oShape.setWorksheet(api_sheet.wb.getWorksheet().model);
oWorkSheet = api_sheet.wb.getWorksheet().model; oWorkSheet = api_sheet.wb.getWorksheet().model;
bWord = false; bWord = false;
......
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