瀏覽代碼

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…
取消
儲存