Commit fe4aedf1 authored by SergeyLuzyanin's avatar SergeyLuzyanin

fix Bug 35073

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