Explorar el Código

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

master
MadBoy_cp hace 12 años
padre
commit
a3f4a8d73b
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      DocX/Paragraph.cs

+ 2
- 1
DocX/Paragraph.cs Ver fichero

@@ -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] });

Cargando…
Cancelar
Guardar