Commit fe4aedf1 authored by SergeyLuzyanin's avatar SergeyLuzyanin

fix Bug 35073

parent ea0fabf6
......@@ -194,7 +194,7 @@
var oTxLstStyle = new AscFormat.TextListStyle();
oTxLstStyle.levels[0] = new CParaPr();
oTxLstStyle.levels[0].Jc = AscCommon.align_Left;
oTxLstStyle.levels[0].DefaultRunPr = new AscCommon.CTextPr();
oTxLstStyle.levels[0].DefaultRunPr = new AscCommonWord.CTextPr();
oTxLstStyle.levels[0].DefaultRunPr.FontSize = 12;
oSp.txBody.setLstStyle(oTxLstStyle);
oSp.setParent(oNM);
......@@ -235,7 +235,7 @@
oTxLstStyle = new AscFormat.TextListStyle();
oTxLstStyle.levels[0] = new CParaPr();
oTxLstStyle.levels[0].Jc = AscCommon.align_Right;
oTxLstStyle.levels[0].DefaultRunPr = new AscCommon.CTextPr();
oTxLstStyle.levels[0].DefaultRunPr = new AscCommonWord.CTextPr();
oTxLstStyle.levels[0].DefaultRunPr.FontSize = 12;
//endParaPr
oSp.txBody.setLstStyle(oTxLstStyle);
......@@ -276,7 +276,7 @@
oTxLstStyle = new AscFormat.TextListStyle();
oTxLstStyle.levels[0] = new CParaPr();
oTxLstStyle.levels[0].Jc = AscCommon.align_Right;
oTxLstStyle.levels[0].DefaultRunPr = new AscCommon.CTextPr();
oTxLstStyle.levels[0].DefaultRunPr = new AscCommonWord.CTextPr();
oTxLstStyle.levels[0].DefaultRunPr.FontSize = 12;
//endParaPr
oSp.txBody.setLstStyle(oTxLstStyle);
......@@ -356,7 +356,7 @@
oTxLstStyle = new AscFormat.TextListStyle();
oTxLstStyle.levels[0] = new CParaPr();
oTxLstStyle.levels[0].Jc = AscCommon.align_Left;
oTxLstStyle.levels[0].DefaultRunPr = new AscCommon.CTextPr();
oTxLstStyle.levels[0].DefaultRunPr = new AscCommonWord.CTextPr();
oTxLstStyle.levels[0].DefaultRunPr.FontSize = 12;
//endParaPr
oSp.txBody.setLstStyle(oTxLstStyle);
......@@ -398,7 +398,7 @@
oTxLstStyle = new AscFormat.TextListStyle();
oTxLstStyle.levels[0] = new CParaPr();
oTxLstStyle.levels[0].Jc = AscCommon.align_Right;
oTxLstStyle.levels[0].DefaultRunPr = new AscCommon.CTextPr();
oTxLstStyle.levels[0].DefaultRunPr = new AscCommonWord.CTextPr();
oTxLstStyle.levels[0].DefaultRunPr.FontSize = 12;
//endParaPr
oSp.txBody.setLstStyle(oTxLstStyle);
......@@ -426,7 +426,7 @@
oTxLstStyle.levels[0].Jc = AscCommon.align_Left;
oTxLstStyle.levels[0].DefaultTabSize = 914400/36000;
oTxLstStyle.levels[0].DefaultRunPr = new AscCommon.CTextPr();
oTxLstStyle.levels[0].DefaultRunPr = new AscCommonWord.CTextPr();
oTxLstStyle.levels[0].DefaultRunPr.FontSize = 12;
oTxLstStyle.levels[0].DefaultRunPr.Unifill = AscFormat.CreateUniFillSchemeColorWidthTint(15, 0);
......
......@@ -679,11 +679,11 @@ CShape.prototype.recalculateContent2 = function()
var content_ = this.getDocContent();
if(content_ && content_.Content[0])
{
content.Content[0].Pr = content_.Content[0].Pr;
var para_text_pr = new ParaTextPr(content_.Content[0].Get_FirstRunPr());
content.Set_ApplyToAll(true);
content.AddToParagraph(para_text_pr);
content.Set_ApplyToAll(false);
content.Content[0].Pr = content_.Content[0].Pr.Copy();
if(!content.Content[0].Pr.DefaultRunPr){
content.Content[0].Pr.DefaultRunPr = new AscCommonWord.CTextPr();
}
content.Content[0].Pr.DefaultRunPr.Merge(content_.Content[0].Get_FirstRunPr());
}
content.Set_StartPage(0);
content.Reset(0, 0, w, 20000);
......
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