Commit a048e7f0 authored by Ilya Kirillov's avatar Ilya Kirillov

Исправлен баг с работой содержимого параграфа в билдере.

parent d1ee2d81
......@@ -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