ソースを参照

Fixed the issue Paragraph.InsertTableBeforeSelf() throws a null reference exception.

master
coffeycathal_cp 14年前
コミット
1121147bd4
1個のファイルの変更2行の追加2行の削除
  1. 2
    2
      DocX/_BaseClasses.cs

+ 2
- 2
DocX/_BaseClasses.cs ファイルの表示

@@ -187,7 +187,7 @@ namespace Novacode
{
XElement newTable = HelperFunctions.CreateTable(rowCount, coloumnCount);
Xml.AddBeforeSelf(newTable);
XElement newlyInserted = Xml.ElementsBeforeSelf().First();
XElement newlyInserted = Xml.ElementsBeforeSelf().Last();
return new Table(Document, newlyInserted);
}
@@ -195,7 +195,7 @@ namespace Novacode
public virtual Table InsertTableBeforeSelf(Table t)
{
Xml.AddBeforeSelf(t.Xml);
XElement newlyInserted = Xml.ElementsBeforeSelf().First();
XElement newlyInserted = Xml.ElementsBeforeSelf().Last();
t.Xml = newlyInserted;

読み込み中…
キャンセル
保存