Commit 65fb8ea1 authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug #35401. Fixed problem with updating the position of the own cursor...

Fixed bug #35401. Fixed problem with updating the position of the own cursor on receiving changes from other user.
parent 3fb161d1
......@@ -1339,7 +1339,10 @@ CDocumentPositionsManager.prototype.Update_DocumentPositionsOnAdd = function(Cla
for (var ClassPos = 0, ClassLen = DocPos.length; ClassPos < ClassLen; ++ClassPos)
{
var _Pos = DocPos[ClassPos];
if (Class === _Pos.Class && _Pos.Position && _Pos.Position >= Pos)
if (Class === _Pos.Class
&& undefined !== _Pos.Position
&& (_Pos.Position > Pos
|| (_Pos.Position === Pos && !(Class instanceof ParaRun))))
{
_Pos.Position++;
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