Commit a69a34bb authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug #34172

parent c3f34f7f
......@@ -5879,7 +5879,7 @@ CDocument.prototype.Insert_Content = function(SelectedContent, NearPos)
LastPos++;
this.Content[LastPos].Select_All();
}
else if (false === bConcatE && type_Paragraph === this.Content[LastPos + 1].Get_Type())
else if (LastPos + 1 < this.Content.length && false === bConcatE && type_Paragraph === this.Content[LastPos + 1].Get_Type())
{
LastPos++;
this.Content[LastPos].Selection.Use = true;
......
......@@ -4471,7 +4471,7 @@ CDocumentContent.prototype.Insert_Content = function(Selecte
LastPos++;
this.Content[LastPos].Select_All();
}
else if (false === bConcatE && type_Paragraph === this.Content[LastPos + 1].Get_Type())
else if (LastPos + 1 < this.Content.length && false === bConcatE && type_Paragraph === this.Content[LastPos + 1].Get_Type())
{
LastPos++;
this.Content[LastPos].Selection.Use = true;
......
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