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

Исправлен баг с рассчетом рамки, в которой находится пустой параграф с разрывом секции (баг 31334).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@67949 954022d7-b5bf-4e40-9824-e11837661b57
parent 34e17ed3
...@@ -9370,6 +9370,11 @@ Paragraph.prototype = ...@@ -9370,6 +9370,11 @@ Paragraph.prototype =
Is_Inline : function() Is_Inline : function()
{ {
// Пустой элемент с разрывом секции мы считаем Inline параграфом.
var PrevElement = this.Get_DocumentPrev();
if (true === this.Is_Empty() && undefined !== this.Get_SectionPr() && null !== PrevElement && (type_Paragraph !== PrevElement.Get_Type() || undefined === PrevElement.Get_SectionPr()))
return true;
if (undefined === this.Parent || (!(this.Parent instanceof CDocument) && (undefined === this.Parent.Parent || !(this.Parent.Parent instanceof CHeaderFooter)))) if (undefined === this.Parent || (!(this.Parent instanceof CDocument) && (undefined === this.Parent.Parent || !(this.Parent.Parent instanceof CHeaderFooter))))
return true; return true;
......
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