Commit d403b2ce authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug #33725 with numId=0 for numbered paragraph.

parent 25d5b1b4
...@@ -7984,7 +7984,10 @@ Paragraph.prototype = ...@@ -7984,7 +7984,10 @@ Paragraph.prototype =
} }
else if (0 === this.Pr.NumPr.NumId) else if (0 === this.Pr.NumPr.NumId)
{ {
// Почему то Word в такой ситуации ведет себя так // Word значение 0 для NumId воспринимает как отсутствие нумерации
Lvl = -1;
Pr.ParaPr.NumPr = undefined;
Pr.ParaPr.Ind.Left = 0; Pr.ParaPr.Ind.Left = 0;
Pr.ParaPr.Ind.FirstLine = 0; Pr.ParaPr.Ind.FirstLine = 0;
} }
......
...@@ -5784,7 +5784,7 @@ function BinaryFileReader(doc, openParams) ...@@ -5784,7 +5784,7 @@ function BinaryFileReader(doc, openParams)
{ {
var numPr = this.oReadResult.paraNumPrs[i]; var numPr = this.oReadResult.paraNumPrs[i];
var oNumClass = this.oReadResult.numToNumClass[numPr.NumId]; var oNumClass = this.oReadResult.numToNumClass[numPr.NumId];
if(null != oNumClass) if(null != oNumClass && 0 !== numPr.NumId)
numPr.NumId = oNumClass.Get_Id(); numPr.NumId = oNumClass.Get_Id();
else else
numPr.NumId = 0; numPr.NumId = 0;
......
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