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) {
if (isRealObject(parent_objects.master) && isRealObject(parent_objects.master.txStyles)) {
var master_ppt_styles;
master_style = new CStyle("masterStyle", null, null, null, true);
if (this.isPlaceholder()) {
switch (this.getPlaceholderType()) {
case AscFormat.phType_ctrTitle:
case AscFormat.phType_title:
{
master_ppt_styles = parent_objects.master.txStyles.titleStyle;
break;
}
case AscFormat.phType_body:
case AscFormat.phType_subTitle:
case AscFormat.phType_obj:
case null:
{
master_ppt_styles = parent_objects.master.txStyles.bodyStyle;
break;
}
default:
{
master_ppt_styles = parent_objects.master.txStyles.otherStyle;
break;
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:
case AscFormat.phType_title:
{
master_ppt_styles = parent_objects.master.txStyles.titleStyle;
break;
}
case AscFormat.phType_body:
case AscFormat.phType_subTitle:
case AscFormat.phType_obj:
case null:
{
master_ppt_styles = parent_objects.master.txStyles.bodyStyle;
break;
}
default:
{
master_ppt_styles = parent_objects.master.txStyles.otherStyle;
break;
}
}
}
}
else {
master_ppt_styles = parent_objects.master.txStyles.otherStyle;
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])) {
......
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