Commit 90f838ec authored by alexey.musinov's avatar alexey.musinov

Merge branch 'develop' of https://github.com/ONLYOFFICE/sdkjs into develop

parents 2a2f2f67 a048e7f0
......@@ -1363,7 +1363,7 @@
ApiParagraph.prototype.GetElement = function(nPos)
{
// TODO: ParaEnd
if (nPos < 0 || nPos >= this.Paragraph.Content.length - 2)
if (nPos < 0 || nPos >= this.Paragraph.Content.length - 1)
return null;
var oElement = this.Paragraph.Content[nPos];
......@@ -1378,7 +1378,7 @@
*/
ApiParagraph.prototype.RemoveElement = function(nPos)
{
if (nPos < 0 || nPos >= this.Paragraph.Content.length - 2)
if (nPos < 0 || nPos >= this.Paragraph.Content.length - 1)
return;
this.Paragraph.Remove_FromContent(nPos, 1);
......
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