mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
Explicitly tell the frontends about the current Layout when opening a
new buffer. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6677 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3566eaa406
commit
b92fba65e8
@ -186,7 +186,7 @@ void BufferView::Pimpl::buffer(Buffer * b)
|
||||
// FIXME: needed when ?
|
||||
bv_->text->top_y(screen().topCursorVisible(bv_->text->cursor, bv_->text->top_y()));
|
||||
|
||||
// Similarly, buffer-dependent dialogs should be updated or
|
||||
// Buffer-dependent dialogs should be updated or
|
||||
// hidden. This should go here because some dialogs (eg ToC)
|
||||
// require bv_->text.
|
||||
owner_->getDialogs().updateBufferDependent(true);
|
||||
@ -209,6 +209,13 @@ void BufferView::Pimpl::buffer(Buffer * b)
|
||||
owner_->updateLayoutChoice();
|
||||
owner_->updateWindowTitle();
|
||||
|
||||
if (buffer_) {
|
||||
// Don't forget to update the Layout
|
||||
string const layoutname =
|
||||
bv_->text->cursor.par()->layout()->name();
|
||||
owner_->setLayout(layoutname);
|
||||
}
|
||||
|
||||
if (grfx::Previews::activated() && buffer_)
|
||||
grfx::Previews::get().generateBufferPreviews(*buffer_);
|
||||
}
|
||||
|
@ -1,3 +1,8 @@
|
||||
2003-04-01 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* BufferView_pimpl.C (buffer): ensure that the Layout is correct
|
||||
in the frontends.
|
||||
|
||||
2003-04-02 John Levon <levon@movementarian.org>
|
||||
|
||||
* lyxtext.h:
|
||||
|
Loading…
Reference in New Issue
Block a user