Commit a9da0021 authored by SergeyLuzyanin's avatar SergeyLuzyanin

correct compile text styles in notes shape

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