From 15161a62ff6d6a96c38c3e621c8847cc55d2f685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Fri, 10 Dec 1999 00:09:13 +0000 Subject: [PATCH] small fix git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@363 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferView.C | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/BufferView.C b/src/BufferView.C index 9f051925fc..718f11bd8f 100644 --- a/src/BufferView.C +++ b/src/BufferView.C @@ -99,8 +99,10 @@ void BufferView::buffer(Buffer *b) if (buffer_) { buffer_->InsetSleep(); buffer_->delUser(this); +#ifdef MOVE_TEXT delete text; text = 0; +#endif } // Set current buffer @@ -290,7 +292,7 @@ void BufferView::redoCurrentBuffer() { lyxerr[Debug::INFO] << "BufferView::redoCurrentBuffer" << endl; #ifdef MOVE_TEXT - if (text) { + if (buffer_ && text) { resize(); owner_->updateLayoutChoice(); }