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

Исправлен баг со сменой отступов параграфа при отмене нумерации (баг 27618).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60118 954022d7-b5bf-4e40-9824-e11837661b57
parent 15e100be
......@@ -6881,10 +6881,13 @@ Paragraph.prototype =
var Left = CurParaPr.Ind.Left + CurParaPr.Ind.FirstLine;
var NumLeftCorrection = ( undefined != Lvl.ParaPr.Ind.FirstLine ? Math.abs( Lvl.ParaPr.Ind.FirstLine ) : 0 );
History.Add( this, { Type : historyitem_Paragraph_Ind_Left, New : Left, Old : this.Pr.Ind.Left } );
History.Add( this, { Type : historyitem_Paragraph_Ind_First, New : 0, Old : this.Pr.Ind.FirstLine } );
this.Pr.Ind.Left = Left - NumLeftCorrection;
this.Pr.Ind.FirstLine = 0;
var NewFirstLine = 0;
var NewLeft = Left < 0 ? Left : Math.max(0, Left - NumLeftCorrection);
History.Add( this, { Type : historyitem_Paragraph_Ind_Left, New : NewLeft, Old : this.Pr.Ind.Left } );
History.Add( this, { Type : historyitem_Paragraph_Ind_First, New : NewFirstLine, Old : this.Pr.Ind.FirstLine } );
this.Pr.Ind.Left = NewLeft;
this.Pr.Ind.FirstLine = NewFirstLine;
}
}
}
......
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