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 = ...@@ -9358,8 +9358,8 @@ Paragraph.prototype =
{ {
var Depth = 0; var Depth = 0;
var OldStartPos = this.Selection.StartPos; var OldStartPos = Math.min( this.Selection.StartPos, this.Content.length - 1 );
var OldEndPos = this.Selection.EndPos; var OldEndPos = Math.min( this.Selection.EndPos, this.Content.length - 1 );
if ( OldStartPos > OldEndPos ) if ( OldStartPos > OldEndPos )
{ {
...@@ -18800,11 +18800,17 @@ Paragraph.prototype = ...@@ -18800,11 +18800,17 @@ Paragraph.prototype =
{ {
Start : this.Selection.Start, Start : this.Selection.Start,
Use : this.Selection.Use, Use : this.Selection.Use,
StartPos : this.Get_ParaContentPos( true, true ), StartPos : 0,
EndPos : this.Get_ParaContentPos( true, false ), EndPos : 0,
Flag : this.Selection.Flag 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 ]; 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