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

Исправдлен баг с текущей позицией курсора и выделение я в параграфе(как...

Исправдлен баг с текущей позицией курсора и выделение я в параграфе(как следствие баг 24366). Исправлен баг с передвижением курсора вправо(баг 24364).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56490 954022d7-b5bf-4e40-9824-e11837661b57
parent dc2a68d5
......@@ -8423,7 +8423,7 @@ Paragraph.prototype =
Correct_ContentPos2 : function()
{
var Count = this.Content.length;
var CurPos = this.CurPos.ContentPos;
var CurPos = Math.min( Math.max( 0, this.CurPos.ContentPos ), Count - 1 );
// Может так случиться, что текущий элемент окажется непригодным для расположения курсора, тогда мы ищем ближайший пригодный
while ( CurPos > 0 && false === this.Content[CurPos].Is_CursorPlaceable() )
......@@ -17891,7 +17891,7 @@ Paragraph.prototype =
X : this.CurPos.X,
Y : this.CurPos.Y,
Line : this.CurPos.Line,
ContentPos : this.Get_ParaContentPos( false, false ),
ContentPos : ( true === this.Selection.Use ? this.Get_ParaContentPos( true, false ) : this.Get_ParaContentPos( false, false ) ),
RealX : this.CurPos.RealX,
RealY : this.CurPos.RealY,
PagesPos : this.CurPos.PagesPos
......
......@@ -3670,7 +3670,7 @@ ParaRun.prototype =
}
var Item = this.Content[CurPos];
if ( CurPos > Count || (para_Drawing !== Item.Type && (false !== StepEnd || para_End !== Item.Type) ) || (para_Drawing === Item.Type && false !== Item.Is_Inline()))
if ( CurPos > Count || (para_Drawing !== Item.Type && (false !== StepEnd || para_End !== this.Content[CurPos - 1].Type) ) || (para_Drawing === Item.Type && false !== Item.Is_Inline()))
break;
}
......
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