소스 검색

Fixes a bug in RemoveText, patch by MiroJanosik, confirmed and tested by Bartosz Węgielewski

master
MadBoy_cp 12 년 전
부모
커밋
a3f4a8d73b
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      DocX/Paragraph.cs

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

@@ -3446,7 +3446,8 @@ namespace Novacode
default:
{
XElement[] splitRunBefore = Run.SplitRun(run, index, EditType.del);
int min = Math.Min(index + processed + (count - processed), run.EndIndex);
//int min = Math.Min(index + processed + (count - processed), run.EndIndex);
int min = Math.Min(index + (count - processed), run.EndIndex);
XElement[] splitRunAfter = Run.SplitRun(run, min, EditType.del);
object middle = CreateEdit(EditType.del, remove_datetime, new List<XElement>() { Run.SplitRun(new Run(Document, splitRunBefore[1], run.StartIndex + GetElementTextLength(splitRunBefore[0])), min, EditType.del)[0] });

Loading…
취소
저장