DocX
DocX copied to clipboard
Ignore Fallback and drawing in GetFirstRunEffectedByEditRecursive (fixes #414)
HelperFunctions.GetTextRecursive ignores Fallback and drawing elements when determining the text value of a run. However, GetFirstRunEffectedByEditRecursive did not ignore these elements, resulting in incompatible text indices in presence of such elements (e.g. when text fields are used - as shown in #414).
This PR fixes this issue by ignoring Fallback and drawing elements also in GetFirstRunEffectedByEditRecursive.
Hi, This is already fixed. The fix will be part of v2.1. Thank you for looking into this.