Commit 27b304fe authored by Anna.Pavlova's avatar Anna.Pavlova Committed by Alexander.Trofimov

поправлен баг при перемещении по стрелкам влево/вправо между формулами

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55803 954022d7-b5bf-4e40-9824-e11837661b57
parent a21edff1
...@@ -959,6 +959,7 @@ ParaMath.prototype = ...@@ -959,6 +959,7 @@ ParaMath.prototype =
Get_EndRangePos : function(_CurLine, _CurRange, SearchPos, Depth) Get_EndRangePos : function(_CurLine, _CurRange, SearchPos, Depth)
{ {
// TODO: ParaMath.Get_EndRangePos // TODO: ParaMath.Get_EndRangePos
}, },
Get_StartRangePos : function(_CurLine, _CurRange, SearchPos, Depth) Get_StartRangePos : function(_CurLine, _CurRange, SearchPos, Depth)
......
...@@ -6160,6 +6160,10 @@ CMathContent.prototype = ...@@ -6160,6 +6160,10 @@ CMathContent.prototype =
{ {
if(!this.IsEmpty()) if(!this.IsEmpty())
{ {
this.CurPos = 0;
this.SelectStartPos = 0;
this.SelectEndPos = 0;
this.content[0].Cursor_MoveToStartPos(); this.content[0].Cursor_MoveToStartPos();
} }
}, },
...@@ -6168,6 +6172,10 @@ CMathContent.prototype = ...@@ -6168,6 +6172,10 @@ CMathContent.prototype =
if(!this.IsEmpty()) if(!this.IsEmpty())
{ {
var len = this.content.length - 1; var len = this.content.length - 1;
this.CurPos = len;
this.SelectStartPos = len;
this.SelectEndPos = len;
this.content[len].Cursor_MoveToEndPos(); this.content[len].Cursor_MoveToEndPos();
} }
}, },
......
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