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 @@ ...@@ -1363,7 +1363,7 @@
ApiParagraph.prototype.GetElement = function(nPos) ApiParagraph.prototype.GetElement = function(nPos)
{ {
// TODO: ParaEnd // TODO: ParaEnd
if (nPos < 0 || nPos >= this.Paragraph.Content.length - 2) if (nPos < 0 || nPos >= this.Paragraph.Content.length - 1)
return null; return null;
var oElement = this.Paragraph.Content[nPos]; var oElement = this.Paragraph.Content[nPos];
...@@ -1378,7 +1378,7 @@ ...@@ -1378,7 +1378,7 @@
*/ */
ApiParagraph.prototype.RemoveElement = function(nPos) ApiParagraph.prototype.RemoveElement = function(nPos)
{ {
if (nPos < 0 || nPos >= this.Paragraph.Content.length - 2) if (nPos < 0 || nPos >= this.Paragraph.Content.length - 1)
return; return;
this.Paragraph.Remove_FromContent(nPos, 1); this.Paragraph.Remove_FromContent(nPos, 1);
...@@ -4673,4 +4673,4 @@ ...@@ -4673,4 +4673,4 @@
this.private_OnChange(); this.private_OnChange();
}; };
}(window, null)); }(window, null));
\ No newline at end of file
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