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

Исправлены падения в новом варианте параграфа.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55028 954022d7-b5bf-4e40-9824-e11837661b57
parent d994091f
......@@ -9358,8 +9358,8 @@ Paragraph.prototype =
{
var Depth = 0;
var OldStartPos = this.Selection.StartPos;
var OldEndPos = this.Selection.EndPos;
var OldStartPos = Math.min( this.Selection.StartPos, this.Content.length - 1 );
var OldEndPos = Math.min( this.Selection.EndPos, this.Content.length - 1 );
if ( OldStartPos > OldEndPos )
{
......@@ -18800,11 +18800,17 @@ Paragraph.prototype =
{
Start : this.Selection.Start,
Use : this.Selection.Use,
StartPos : this.Get_ParaContentPos( true, true ),
EndPos : this.Get_ParaContentPos( true, false ),
StartPos : 0,
EndPos : 0,
Flag : this.Selection.Flag
};
if ( true === this.Selection.Use )
{
ParaState.Selection.StartPos = this.Get_ParaContentPos( true, true );
ParaState.Selection.EndPos = this.Get_ParaContentPos( true, false );
}
return [ ParaState ];
}
},
......
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