Commit 326f01bd authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug with calculating position of the cursor.

parent aad1160b
......@@ -1087,7 +1087,7 @@ Paragraph.prototype.Internal_Recalculate_CurPos = function(Pos, UpdateCurPos, Up
var LinePos = this.Get_CurrentParaPos();
if (-1 === LinePos.Line)
if (-1 === LinePos.Line || LinePos.Line >= this.Lines.length)
return {
X : 0,
Y : 0,
......
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