Explorar el Código

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 hace 14 años
padre
commit
4535f49bab
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      DocX/Container.cs

+ 1
- 1
DocX/Container.cs Ver fichero

public Table InsertTable(int rowCount, int coloumnCount) public Table InsertTable(int rowCount, int coloumnCount)
{ {
XElement newTable = HelperFunctions.CreateTable(rowCount, coloumnCount); XElement newTable = HelperFunctions.CreateTable(rowCount, coloumnCount);
Xml.Elements().First().Add(newTable);
Xml.Add(newTable);
return new Table(Document, newTable); return new Table(Document, newTable);
} }

Cargando…
Cancelar
Guardar