[ve] Use GetDefaultTheme istead of GenerateDefaultTheme

This commit is contained in:
Fedor Kobyakov
2025-08-13 17:46:16 +03:00
parent bddb93ccff
commit 8666102dff
2 changed files with 3 additions and 3 deletions

View File

@ -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());
}
};

View File

@ -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};
};