mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +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) {
|
CVisioDocument.prototype.AfterOpenDocument = function(zip, context) {
|
||||||
if (!this.themes.length) {
|
if (!this.themes.length) {
|
||||||
AscCommon.consoleLog("No themes found by filenames. Creating default theme");
|
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) {
|
if (this.parent) {
|
||||||
oTheme = this.parent.themes[0];
|
oTheme = this.parent.themes[0];
|
||||||
} else {
|
} else {
|
||||||
AscCommon.consoleLog("Parent was not set for shape/group. GenerateDefaultTheme is used. shape/group:", this);
|
AscCommon.consoleLog("Parent was not set for shape/group. GetDefaultTheme will be used. shape/group:", this);
|
||||||
oTheme = AscFormat.GenerateDefaultTheme(null, null);
|
oTheme = AscFormat.GetDefaultTheme();
|
||||||
}
|
}
|
||||||
return {slide: null, layout: null, master: null, theme: oTheme};
|
return {slide: null, layout: null, master: null, theme: oTheme};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user