Commit b34aed40 authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug with add/remove cells to/from a table row.

parent b3f4d71f
...@@ -119,7 +119,7 @@ CTableRow.prototype = ...@@ -119,7 +119,7 @@ CTableRow.prototype =
for (var Index = 0; Index < CellsCount; Index++) for (var Index = 0; Index < CellsCount; Index++)
{ {
Row.Content[Index] = this.Content[Index].Copy(Row); Row.Content[Index] = this.Content[Index].Copy(Row);
History.Add(new CChangesTableRowAddCell(Row, Index, Row.Content[Index])); History.Add(new CChangesTableRowAddCell(Row, Index, [Row.Content[Index]]));
} }
Row.Internal_ReIndexing(); Row.Internal_ReIndexing();
...@@ -593,7 +593,7 @@ CTableRow.prototype = ...@@ -593,7 +593,7 @@ CTableRow.prototype =
if ("undefined" === typeof(Cell) || null === Cell) if ("undefined" === typeof(Cell) || null === Cell)
Cell = new CTableCell(Row); Cell = new CTableCell(Row);
History.Add(new CChangesTableRowAddCell(this, Index, Cell)); History.Add(new CChangesTableRowAddCell(this, Index, [Cell]));
this.Content.splice(Index, 0, Cell); this.Content.splice(Index, 0, Cell);
this.CellsInfo.splice(Index, 0, {}); this.CellsInfo.splice(Index, 0, {});
......
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