Commit 59dfe73f authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug with positioning of cursor after function InsertContent.

parent 0adcf316
......@@ -5831,6 +5831,7 @@ CDocument.prototype.Insert_Content = function(SelectedContent, NearPos)
this.Selection.Use = true;
this.Selection.StartPos = DstIndex;
this.Selection.EndPos = DstIndex + ElementsCount - 1;
this.CurPos.ContentPos = DstIndex + ElementsCount - 1;
}
if (docpostype_DrawingObjects !== this.CurPos.Type)
......
......@@ -4471,6 +4471,7 @@ CDocumentContent.prototype.Insert_Content = function(Selecte
this.Selection.Use = true;
this.Selection.StartPos = DstIndex;
this.Selection.EndPos = DstIndex + ElementsCount - 1;
this.CurPos.ContentPos = DstIndex + ElementsCount - 1;
}
if (true === bNeedSelect)
......
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