Commit 84f1c7d9 authored by Ilya.Kirillov's avatar Ilya.Kirillov

Исправлен баг в логике пересчета параграфа (баг 26974).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58955 954022d7-b5bf-4e40-9824-e11837661b57
parent 7952fa5d
...@@ -741,13 +741,19 @@ Paragraph.prototype.private_RecalculateLine = function(CurLine, CurPa ...@@ -741,13 +741,19 @@ Paragraph.prototype.private_RecalculateLine = function(CurLine, CurPa
return; return;
//------------------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------------------
// 12. Пересчитываем сдвиги элементов внутри параграфа и видимые ширины пробелов, в зависимости от align. // 12. Проверяем особую ситуацию, когда у нас параграф заканчивается элементом PageBreak
//-------------------------------------------------------------------------------------------------------------
if (false === this.private_RecalculateLineBreakPageEnd(CurLine, CurPage, PRS, ParaPr))
return;
//-------------------------------------------------------------------------------------------------------------
// 13. Пересчитываем сдвиги элементов внутри параграфа и видимые ширины пробелов, в зависимости от align.
//------------------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------------------
if (recalcresult_NextElement !== this.private_RecalculateLineAlign(CurLine, CurPage, PRS, ParaPr, false)) if (recalcresult_NextElement !== this.private_RecalculateLineAlign(CurLine, CurPage, PRS, ParaPr, false))
return; return;
//------------------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------------------
// 13. Последние проверки // 14. Последние проверки
//------------------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------------------
if (false === this.private_RecalculateLineEnd(CurLine, CurPage, PRS, ParaPr)) if (false === this.private_RecalculateLineEnd(CurLine, CurPage, PRS, ParaPr))
return; return;
...@@ -1236,7 +1242,7 @@ Paragraph.prototype.private_RecalculateLineCheckRangeY = function(CurLine, CurPa ...@@ -1236,7 +1242,7 @@ Paragraph.prototype.private_RecalculateLineCheckRangeY = function(CurLine, CurPa
return true; return true;
}; };
Paragraph.prototype.private_RecalculateLineEnd = function(CurLine, CurPage, PRS, ParaPr) Paragraph.prototype.private_RecalculateLineBreakPageEnd= function(CurLine, CurPage, PRS, ParaPr)
{ {
if ( true === PRS.NewPage ) if ( true === PRS.NewPage )
{ {
...@@ -1261,8 +1267,10 @@ Paragraph.prototype.private_RecalculateLineEnd = function(CurLine, CurPa ...@@ -1261,8 +1267,10 @@ Paragraph.prototype.private_RecalculateLineEnd = function(CurLine, CurPa
PRS.RecalcResult = recalcresult_NextPage; PRS.RecalcResult = recalcresult_NextPage;
return false; return false;
} }
};
Paragraph.prototype.private_RecalculateLineEnd = function(CurLine, CurPage, PRS, ParaPr)
{
if (true !== PRS.End) if (true !== PRS.End)
{ {
if ( true === PRS.ForceNewPage ) if ( true === PRS.ForceNewPage )
......
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