Sfoglia il codice sorgente

Merge pull request #86 from Twotsman/patch-1

Update Container.cs
master
PrzemyslawKlys 9 anni fa
parent
commit
6fc6ea1990
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3
    3
      DocX/Container.cs

+ 3
- 3
DocX/Container.cs Vedi File

@@ -278,9 +278,9 @@ namespace Novacode
List<Paragraph> paragraphs = new List<Paragraph>();
foreach (XElement e in Xml.Descendants(XName.Get("p", DocX.w.NamespaceName)))
{
index += HelperFunctions.GetText(e).Length;
Paragraph paragraph = new Paragraph(Document, e, index);
paragraphs.Add(paragraph);
index += HelperFunctions.GetText(e).Length;
}
// GetParagraphsRecursive(Xml, ref index, ref paragraphs, deepSearch);
@@ -435,7 +435,7 @@ namespace Novacode
List<int> indexes = p.FindAll(str, options);
for (int i = 0; i < indexes.Count(); i++)
indexes[0] += p.startIndex;
indexes[i] += p.startIndex;
list.AddRange(indexes);
}
@@ -1044,4 +1044,4 @@ namespace Novacode
return list;
}
}
}
}

Loading…
Annulla
Salva