mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 16:31:13 +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_) {
|
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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user