Commit e1d60b2e authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix bug 32383

parent 0eb7b074
......@@ -459,12 +459,7 @@ var editor;
spreadsheet_api.prototype.asc_LoadEmptyDocument = function() {
this.CoAuthoringApi.auth(this.getViewMode());
var emptyWorkbook = AscCommonExcel.getEmptyWorkbook() + "";
if (emptyWorkbook.length && (AscCommon.c_oSerFormat.Signature === emptyWorkbook.substring(0, AscCommon.c_oSerFormat.Signature.length))) {
this.isChartEditor = true;
this.openDocument(emptyWorkbook);
}
this.onEndLoadFile(true);
};
spreadsheet_api.prototype._openDocument = function(data) {
......@@ -1093,6 +1088,16 @@ var editor;
};
spreadsheet_api.prototype.openDocument = function(sData) {
if (true === sData) {
// Empty Document
sData = AscCommonExcel.getEmptyWorkbook() + "";
if (sData.length && (AscCommon.c_oSerFormat.Signature === sData.substring(0, AscCommon.c_oSerFormat.Signature.length))) {
this.isChartEditor = true;
} else {
return;
}
}
this.wbModel = this._openDocument(sData);
this.FontLoader.LoadDocumentFonts(this.wbModel.generateFontMap2());
......
......@@ -294,7 +294,7 @@ baseEditorsApi.prototype.asc_LoadDocument = function(isVersionHistory) {
this.advancedOptionsAction = AscCommon.c_oAscAdvancedOptionsAction.Open;
var rData = null;
if (offlineMode !== this.documentUrl) {
var rData = {
rData = {
"c": 'open',
"id": this.documentId,
"userid": this.documentUserId,
......
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