From f2f3a9292426bbc5c2fb229a398c8ea9418e7ff6 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