Commit 7682be27 authored by Alexander.Trofimov's avatar Alexander.Trofimov

Revert "fix error cell open"

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