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:
Stephan Aßmus
2014-01-26 11:23:20 +01:00
parent 66b61b4784
commit aa1800bb89
@@ -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);
}