Commit a048e7f0 authored by Ilya Kirillov's avatar Ilya Kirillov

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

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