mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
small fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@363 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ee1229d743
commit
15161a62ff
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user