Commit efe8e48e authored by Sergey Luzyanin's avatar Sergey Luzyanin

Мержим в начале с дефолтовыми свойствами

parent ca676c43
......@@ -526,6 +526,9 @@ CShape.prototype.recalculateShapeStyleForParagraph = function()
this.textStyleForParagraph = {TextPr: styles.Default.TextPr.Copy(), ParaPr: styles.Default.ParaPr.Copy()};
var DefId = styles.Default.Paragraph;
var DefaultStyle = styles.Style[DefId];
this.textStyleForParagraph.ParaPr.Merge( g_oDocumentDefaultParaPr );
this.textStyleForParagraph.TextPr.Merge( g_oDocumentDefaultTextPr );
if(DefaultStyle)
{
this.textStyleForParagraph.ParaPr.Merge( DefaultStyle.ParaPr );
......
......@@ -4210,6 +4210,7 @@ function TEST_BUILDER()
var oRun2 = oParagraph2.AddText("HAYDEN MANAGEMENT");
oRun2.SetFontSize(64);
oRun2.SetColor(255, 255, 255);
oRun2.SetFontFamily("Calibri Light");
oParagraph2.SetBottomBorder("single", 1, 0, 255, 104, 0);
oDocContent.Push(oParagraph2);
oParagraph2 = Api.CreateParagraph();
......
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