Преглед на файлове

Fixed a silly bug within document.InsertTable(int, int).

This bug caused a Table to be inserted "inside" the first element of a document's XML instead of "as" the first element.
master
coffeycathal_cp преди 14 години
родител
ревизия
4535f49bab
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      DocX/Container.cs

+ 1
- 1
DocX/Container.cs Целия файл

@@ -423,7 +423,7 @@ namespace Novacode
public Table InsertTable(int rowCount, int coloumnCount)
{
XElement newTable = HelperFunctions.CreateTable(rowCount, coloumnCount);
Xml.Elements().First().Add(newTable);
Xml.Add(newTable);
return new Table(Document, newTable);
}

Loading…
Отказ
Запис