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

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

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50627 954022d7-b5bf-4e40-9824-e11837661b57
parent f479e2ed
...@@ -5704,9 +5704,21 @@ CDocument.prototype = ...@@ -5704,9 +5704,21 @@ CDocument.prototype =
{ {
var Element = this.Content[this.CurPos.ContentPos]; var Element = this.Content[this.CurPos.ContentPos];
if ( type_Paragraph != Element.GetType() || undefined === Element.Get_FramePr() ) if ( type_Paragraph != Element.GetType() )
return; return;
// Возможно, предыдущий элемент является буквицей
if ( undefined === Element.Get_FramePr() )
{
var PrevElement = Element.Get_DocumentPrev();
if ( type_Paragraph != PrevElement.GetType() || undefined === PrevElement.Get_FramePr() || undefined === PrevElement.Get_FramePr().DropCap )
return;
Element = PrevElement;
}
var FrameParas = Element.Internal_Get_FrameParagraphs(); var FrameParas = Element.Internal_Get_FrameParagraphs();
var FrameCount = FrameParas.length; var FrameCount = FrameParas.length;
for ( var Pos = 0; Pos < FrameCount; Pos++ ) for ( var Pos = 0; Pos < FrameCount; Pos++ )
......
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