Completed
Last Updated: 07 Jul 2022 10:55 by ADMIN
Release LIB 2022.2.711 (11 Jul 2022)
ADMIN
Tanya
Created on: 20 Jun 2022 08:46
Category: RichTextBox
Type: Bug Report
0
RichTextBox: Paragraph created with CreateDeepCopy causes InvalidOperationException on measure
The paragraph is not correctly copied and carries empty inlines that cause the exception.

Workaround: Add some content to the inlines of the copied paragraph:
foreach (Span span in paragraphCopy.EnumerateChildrenOfType<Span>())
{
    if (string.IsNullOrEmpty(span.Text))
    {
        span.Text = " ";
    }
}

0 comments