Skip to content

Ignore Fallback and drawing in GetFirstRunEffectedByEditRecursive (fixes #414)#423

Open
janbernloehr wants to merge 1 commit intoxceedsoftware:masterfrom
janbernloehr:jbernlo/fix-replace-text
Open

Ignore Fallback and drawing in GetFirstRunEffectedByEditRecursive (fixes #414)#423
janbernloehr wants to merge 1 commit intoxceedsoftware:masterfrom
janbernloehr:jbernlo/fix-replace-text

Conversation

@janbernloehr
Copy link

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.

…be symmetric with HelperFunctions.GetTextRecursive - fixes xceedsoftware#414
@XceedBoucherS
Copy link
Collaborator

Hi,
This is already fixed. The fix will be part of v2.1.
Thank you for looking into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants