mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-02-10 18:15:19 +08:00
[ve] Use GetDefaultTheme istead of GenerateDefaultTheme
This commit is contained in:
@ -361,7 +361,7 @@ AscDFH.historyitem_type_VisioWindow = 328;
|
||||
CVisioDocument.prototype.AfterOpenDocument = function(zip, context) {
|
||||
if (!this.themes.length) {
|
||||
AscCommon.consoleLog("No themes found by filenames. Creating default theme");
|
||||
this.themes.push(AscFormat.GenerateDefaultTheme(null, null));
|
||||
this.themes.push(AscFormat.GetDefaultTheme());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -51,8 +51,8 @@ AscFormat.CShape.prototype.getParentObjects = function ()
|
||||
if (this.parent) {
|
||||
oTheme = this.parent.themes[0];
|
||||
} else {
|
||||
AscCommon.consoleLog("Parent was not set for shape/group. GenerateDefaultTheme is used. shape/group:", this);
|
||||
oTheme = AscFormat.GenerateDefaultTheme(null, null);
|
||||
AscCommon.consoleLog("Parent was not set for shape/group. GetDefaultTheme will be used. shape/group:", this);
|
||||
oTheme = AscFormat.GetDefaultTheme();
|
||||
}
|
||||
return {slide: null, layout: null, master: null, theme: oTheme};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user