Pārlūkot izejas kodu

Fixes broken images when inserting an image into a header/footer Paragraph using the InsertPicture method.

InsertPicture() in headers and footers should work just like AppendPicture() used to work.

Patch provided by Annika89
master
MadBoy_cp pirms 12 gadiem
vecāks
revīzija
d0cb0bbea1
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2
    2
      DocX/Paragraph.cs

+ 2
- 2
DocX/Paragraph.cs Parādīt failu

@@ -2385,7 +2385,7 @@ namespace Novacode
// The picture has to be the next element, extract it back out of the DOM.
p_xml = (XElement)run.Xml.NextNode;
}
}
// Extract the attribute id from the Pictures Xml.
XAttribute a_id =
(
@@ -2396,7 +2396,7 @@ namespace Novacode
// Set its value to the Pictures relationships id.
a_id.SetValue(Id);
}
return this;
}

Notiek ielāde…
Atcelt
Saglabāt