Commit a9da0021 authored by SergeyLuzyanin's avatar SergeyLuzyanin

correct compile text styles in notes shape

parent 6dd1dff3
......@@ -2386,6 +2386,10 @@ CShape.prototype.recalculateTextStyles = function (level) {
if (isRealObject(parent_objects.master) && isRealObject(parent_objects.master.txStyles)) {
var master_ppt_styles;
master_style = new CStyle("masterStyle", null, null, null, true);
if(parent_objects.master.kind === AscFormat.TYPE_KIND.NOTES_MASTER){
master_ppt_styles = parent_objects.master.txStyles;
}
else{
if (this.isPlaceholder()) {
switch (this.getPlaceholderType()) {
case AscFormat.phType_ctrTitle:
......@@ -2412,6 +2416,7 @@ CShape.prototype.recalculateTextStyles = function (level) {
else {
master_ppt_styles = parent_objects.master.txStyles.otherStyle;
}
}
if (isRealObject(master_ppt_styles) && isRealObject(master_ppt_styles.levels) && isRealObject(master_ppt_styles.levels[level])) {
var master_ppt_style = master_ppt_styles.levels[level];
......
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