Commit b1db95b5 authored by Ilya Kirillov's avatar Ilya Kirillov Committed by Alexander.Trofimov

Исправлен баг с работой текстовых настроек и настроек параграфа у нумерации.

parent da9f4316
......@@ -123,7 +123,6 @@
{
this.Num = Num;
this.Lvl = Math.max(0, Math.min(8, Lvl));
this.NumLvl = this.Num.Lvl[this.Lvl];
}
/**
......@@ -2086,7 +2085,7 @@
*/
ApiNumberingLevel.prototype.GetTextPr = function()
{
return new ApiTextPr(this.NumLvl.TextPr.Copy());
return new ApiTextPr(this, this.Num.Lvl[this.Lvl].TextPr.Copy());
};
/**
* This paragraph properties are applied to any numbered paragraph that references the given numbering definition
......@@ -2095,7 +2094,7 @@
*/
ApiNumberingLevel.prototype.GetParaPr = function()
{
return new ApiParaPr(this.NumPr.ParaPr.Copy());
return new ApiParaPr(this, this.Num.Lvl[this.Lvl].ParaPr.Copy());
};
/**
* Set one of the predefined numbering templates.
......@@ -3260,6 +3259,8 @@ function TEST_BUILDER2()
var sSymbolCharCode = 'a'.charCodeAt(0) + nLvl;
oNumLvl.SetTemplateType("bullet", String.fromCharCode(sSymbolCharCode));
oNumLvl.SetSuff("none");
oNumLvl.GetTextPr().SetBold(true);
oNumLvl.GetParaPr().SetJc("center");
oParagraph = Api.CreateParagraph();
oParagraph.AddText("Template bullet lvl " + (nLvl + 1));
......@@ -3271,6 +3272,7 @@ function TEST_BUILDER2()
oParagraph.AddText("Template bullet lvl " + (nLvl + 1));
oParagraph.SetNumbering(oNumLvl);
oParagraph.SetContextualSpacing(true);
oDocument.Push(oParagraph);
}
......
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