Unplanned
Last Updated: 06 Dec 2018 09:27 by ADMIN
Ladislav
Created on: 06 Dec 2018 09:24
Category: RichTextBox
Type: Bug Report
2
RichTextBox: Infinite loop during section layout of specific documents

 

First Scenario: During layout of specific documents where the first section is with Continuous section break type, the layout algorithm enters in an infinite loop causing the application to hang.

Workaround: Change the section break type for the first section after the import of the document and before the layout:
document.Sections.First.PreviousSectionBreakType = SectionBreakType.NextPage;

Second Scenario: During the layout of specific documents where the last section is with Continuous section break type and has specific page size width and height, the layout algorithm enters in an infinite loop causing the application to hang.

Workaround 2: Slightly modify the size of the section which causes the issue after the import of the document and before the layout:
Size pagesize = radDocument.Sections.Last.PageSize;
radDocument.Sections.Last.PageSize = new Size(pagesize.Width - 0.001, pagesize.Height - 0.001);

Third Scenario: During layouting of specific documents containing anchored elements, the layout algorithm enters in an infinite loop causing the application to hang. No workaround.


0 comments