Procházet zdrojové kódy

Bug fix:

Issue shows that document does not contain 'r' xml element on the line which starts with 'tab'. This causes exception in processing.
The line is enclosed in the 'pPr' element though.

Fix by MiroJanosik
master
MadBoy_cp před 12 roky
rodič
revize
5316b90451
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      DocX/Paragraph.cs

+ 1
- 1
DocX/Paragraph.cs Zobrazit soubor

@@ -1694,7 +1694,7 @@ namespace Novacode
count -= HelperFunctions.GetSize(Xml);
// We have found the element, now find the run it belongs to.
while (Xml.Name.LocalName != "r")
while ((Xml.Name.LocalName != "r") && (Xml.Name.LocalName != "pPr"))
Xml = Xml.Parent;
theOne = new Run(Document, Xml, count);

Načítá se…
Zrušit
Uložit