mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
fix layout-related warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8835 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2e0b9cd78d
commit
db3c256d2a
@ -338,7 +338,6 @@ void BufferView::Pimpl::setBuffer(Buffer * b)
|
||||
// hidden. This should go here because some dialogs (eg ToC)
|
||||
// require bv_->text.
|
||||
owner_->getDialogs().updateBufferDependent(true);
|
||||
owner_->setLayout(bv_->text()->getPar(0).layout()->name());
|
||||
} else {
|
||||
lyxerr[Debug::INFO] << " No Buffer!" << endl;
|
||||
// we are closing the buffer, use the first buffer as current
|
||||
@ -353,6 +352,11 @@ void BufferView::Pimpl::setBuffer(Buffer * b)
|
||||
owner_->updateLayoutChoice();
|
||||
owner_->updateWindowTitle();
|
||||
|
||||
// This is done after the layout combox has been populated
|
||||
if (buffer_)
|
||||
owner_->setLayout(cursor_.paragraph().layout()->name());
|
||||
|
||||
|
||||
if (buffer_ && lyx::graphics::Previews::status() != LyXRC::PREVIEW_OFF)
|
||||
lyx::graphics::Previews::get().generateBufferPreviews(*buffer_);
|
||||
}
|
||||
|
@ -1,3 +1,8 @@
|
||||
2004-07-05 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* BufferView_pimpl.C (setBuffer): set the layout combox value only
|
||||
after it has been populated
|
||||
|
||||
2004-06-29 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* text2.C (insertInset): move cursor when inserting inset.
|
||||
|
Loading…
Reference in New Issue
Block a user