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.
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
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.