small fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@363 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 1999-12-10 00:09:13 +00:00
parent ee1229d743
commit 15161a62ff

View File

@ -99,8 +99,10 @@ void BufferView::buffer(Buffer *b)
if (buffer_) { if (buffer_) {
buffer_->InsetSleep(); buffer_->InsetSleep();
buffer_->delUser(this); buffer_->delUser(this);
#ifdef MOVE_TEXT
delete text; delete text;
text = 0; text = 0;
#endif
} }
// Set current buffer // Set current buffer
@ -290,7 +292,7 @@ void BufferView::redoCurrentBuffer()
{ {
lyxerr[Debug::INFO] << "BufferView::redoCurrentBuffer" << endl; lyxerr[Debug::INFO] << "BufferView::redoCurrentBuffer" << endl;
#ifdef MOVE_TEXT #ifdef MOVE_TEXT
if (text) { if (buffer_ && text) {
resize(); resize();
owner_->updateLayoutChoice(); owner_->updateLayoutChoice();
} }