Commit 9c150821 authored by Sergey Luzyanin's avatar Sergey Luzyanin

fix Bug 34082

parent 774a92a8
......@@ -7675,6 +7675,7 @@ DrawingObjectsController.prototype =
{
oSelectedContent = this.document.Get_SelectedContent(true);
oContent.Recalculate_Page(0, true);
oContent.Cursor_MoveToStartPos(false);
oNearestPos = oContent.Get_NearestPos(0, 0, 0, false, undefined);
oNearestPos.Paragraph.Check_NearestPos( oNearestPos );
if(oSelectedContent && this.document.Can_InsertContent(oSelectedContent, oNearestPos))
......@@ -7710,7 +7711,7 @@ DrawingObjectsController.prototype =
oSelectedContent.MoveDrawing = true;
oContent.Recalculate_Page(0, true);
oContent.Cursor_MoveToStartPos(false);
var paragraph = oContent.Content[oContent.CurPos.ContentPos];
if (null != paragraph && type_Paragraph == paragraph.GetType())
{
......
......@@ -13393,6 +13393,7 @@ function CreateDocContentFromString(str, drawingDocument, parent)
function AddToContentFromString(content, str)
{
content.Cursor_MoveToStartPos(false);
for(var i = 0; i < str.length; ++i)
{
var ch = str[i];
......
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