TextDocumentLayout: Remove any extra ParagraphLayouts ...
... when adapting to changes in the TextDocument. There should be more explicit listener support for keeping the TextDocumentLayout in sync with the document.
This commit is contained in:
@@ -101,6 +101,10 @@ TextDocumentLayout::InvalidateParagraphs(int32 start, int32 count)
|
||||
start++;
|
||||
count--;
|
||||
}
|
||||
|
||||
// Remove any extra paragraph layouts
|
||||
while (paragraphs.CountItems() < fParagraphLayouts.CountItems())
|
||||
fParagraphLayouts.Remove(fParagraphLayouts.CountItems() - 1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user