Commit 3ac39210 authored by GoshaZotov's avatar GoshaZotov

changes into converting list to text

parent 62d1a06e
......@@ -2367,16 +2367,21 @@ PasteProcessor.prototype =
{
var numbering = paragraph.Numbering_Get();
if(numbering)
{
if(!paragraph.Numbering.Internal.NumInfo)
{
//проставляем параграфам NumInfo
var parentContent = paragraph.Parent instanceof CDocument ? this.aContent : paragraph.Parent.Content;
for(var i = 0; i < parentContent.length; i++)
{
var tempParagraph = parentContent[i];
var NumberingEngine = new CDocumentNumberingInfoEngine(tempParagraph.Id, numbering, this.oLogicDocument.Get_Numbering());
var numbering2 = tempParagraph.Numbering_Get();
if(numbering2)
{
var NumberingEngine = new CDocumentNumberingInfoEngine(tempParagraph.Id, numbering2, this.oLogicDocument.Get_Numbering());
var numInfo2 = tempParagraph.Numbering.Internal.NumInfo;
if(!numInfo2 || (numInfo2 && !numInfo2[numbering.Lvl]))
{
for (var nIndex = 0, nCount = parentContent.length; nIndex < nCount; ++nIndex)
{
parentContent[nIndex].GetNumberingInfo(NumberingEngine);
......@@ -2386,6 +2391,8 @@ PasteProcessor.prototype =
}
}
}
this._checkNumberingText(paragraph, paragraph.Numbering.Internal.NumInfo, numbering);
}
......
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