Commit 872442ca authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug with calculating spacing before value.

parent 6e30dcd2
......@@ -2170,7 +2170,7 @@ Paragraph.prototype.private_CheckNeedBeforeSpacing = function(CurPage, PRS)
var SectionIndex = LogicDocument.GetSectionIndexByElementIndex(this.Get_Index());
var FirstElement = LogicDocument.GetFirstElementInSection(SectionIndex);
if (!FirstElement || FirstElement.Get_AbsolutePage(0) === PRS.GetPageAbs())
if (0 !== SectionIndex && (!FirstElement || FirstElement.Get_AbsolutePage(0) === PRS.GetPageAbs()))
return true;
return false;
......
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