From b506b7d33b1f8372f6c1cdaf9490dd7338354ef1 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 26 Dec 2001 02:22:43 +0000 Subject: When a paint is abandoned because there is a change in styling outside the painting rectangle, and line wrapping is on, the needWrap flag is set because the restyled text may be thinner or thicker and hence require different wrapping. --- src/Editor.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 0ac540307..abdd46fdd 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1524,6 +1524,9 @@ void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea) { // Either styling or NotifyUpdateUI noticed that painting is needed // outside the current painting rectangle //Platform::DebugPrintf("Abandoning paint\n"); + if (wrapState != eWrapNone) { + needWrap = true; + } return; } //Platform::DebugPrintf("start display %d, offset = %d\n", pdoc->Length(), xOffset); -- cgit v1.2.3