Commit 6cc49fd9 authored by Ilya Kirillov's avatar Ilya Kirillov

Bug #32109 Устранено падение при работе с нумерацией.

parent 1fa15bbc
...@@ -7376,7 +7376,10 @@ Paragraph.prototype = ...@@ -7376,7 +7376,10 @@ Paragraph.prototype =
{ {
if ( undefined != OldNumPr && undefined != OldNumPr.NumId ) if ( undefined != OldNumPr && undefined != OldNumPr.NumId )
{ {
var Lvl = this.Parent.Get_Numbering().Get_AbstractNum(OldNumPr.NumId).Lvl[OldNumPr.Lvl]; var Num = this.Parent.Get_Numbering().Get_AbstractNum(OldNumPr.NumId);
if (Num)
{
var Lvl = Num.Lvl[OldNumPr.Lvl];
if ( undefined != Lvl && undefined != Lvl.ParaPr.Ind && undefined != Lvl.ParaPr.Ind.Left ) if ( undefined != Lvl && undefined != Lvl.ParaPr.Ind && undefined != Lvl.ParaPr.Ind.Left )
{ {
var CurParaPr = this.Get_CompiledPr2(false).ParaPr; var CurParaPr = this.Get_CompiledPr2(false).ParaPr;
...@@ -7393,6 +7396,7 @@ Paragraph.prototype = ...@@ -7393,6 +7396,7 @@ Paragraph.prototype =
} }
} }
} }
}
else if ( this.Pr.Ind.FirstLine < 0 ) else if ( this.Pr.Ind.FirstLine < 0 )
{ {
History.Add( this, { Type : historyitem_Paragraph_Ind_First, New : 0, Old : this.Pr.Ind.FirstLine } ); History.Add( this, { Type : historyitem_Paragraph_Ind_First, New : 0, Old : this.Pr.Ind.FirstLine } );
......
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