From 080ff4532e6ad7a2e74bc3913096b6ee25437a02 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 3 Feb 2002 01:02:22 +0000 Subject: When changing document, ensured rewrap performed. Made memory allocation a little safer in ContractionState. --- src/Editor.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Editor.cxx') diff --git a/src/Editor.cxx b/src/Editor.cxx index e8086770e..461460f69 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3685,6 +3685,7 @@ void Editor::SetDocPointer(Document *document) { // Reset the contraction state to fully shown. cs.Clear(); cs.InsertLines(0, pdoc->LinesTotal() - 1); + NeedWrapping(); pdoc->AddWatcher(this, 0); Redraw(); -- cgit v1.2.3