Completed
Last Updated: 27 Apr 2018 12:24 by ADMIN
Rick
Created on: 11 Jan 2018 16:11
Category: RichTextBox
Type: Bug Report
3
RichTextBox: InvalidCastException thrown when undoing changes to content wrapped in annotation ranges
Undoing changes to words wrapped in annotation ranges throw InvalidCastExceptions as AnnotationRangeStarts are casted to AnnotationRangeEnd.

Steps to reproduce:
1. Add a bookmark to a word
2. Add a bookmark to the following word in the document
3. Use the find dialog to highlight those two words
4. Bold the text
5. Press Ctrl+Z to undo
Observed: Repeated InvalidCastException dialogs

Fix available in LIB Version 2018.1.430.
Attached Files:
2 comments
ADMIN
Tanya
Posted on: 29 Mar 2018 12:48
Hi Chris,

Thank you for sharing that. We are currently working on a fix for this issue, so continue following this item to get a notification when the fix is done.

Regards,
Tanya
Chris
Posted on: 12 Jan 2018 15:33
We can also reproduce this issue with our own custom annotation range if we use the keyboard to select the words (instead of using the find dialog). The difference between our custom range and the bookmark is that we set SkipPositionBefore = false on the end range.