소스 검색

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 12 년 전
부모
커밋
5316b90451
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      DocX/Paragraph.cs

+ 1
- 1
DocX/Paragraph.cs 파일 보기

count -= HelperFunctions.GetSize(Xml); count -= HelperFunctions.GetSize(Xml);
// We have found the element, now find the run it belongs to. // 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; Xml = Xml.Parent;
theOne = new Run(Document, Xml, count); theOne = new Run(Document, Xml, count);

Loading…
취소
저장