mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
Fix LyX.
In r31286, view() was changed in currentBufferView(), but in r31290 buffer() was changed in documentBufferView()->buffer(). Please be careful with this! git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31300 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
99d1937bec
commit
26ae0f7eca
@ -617,14 +617,14 @@ void LayoutBox::updateContents(bool reset)
|
||||
{
|
||||
d->resetFilter();
|
||||
|
||||
if (!d->owner_.documentBufferView()) {
|
||||
if (!d->owner_.currentBufferView()) {
|
||||
d->model_->clear();
|
||||
setEnabled(false);
|
||||
d->text_class_ = 0;
|
||||
d->inset_ = 0;
|
||||
return;
|
||||
}
|
||||
Buffer const * buffer = &d->owner_.documentBufferView()->buffer();
|
||||
Buffer const * buffer = &d->owner_.currentBufferView()->buffer();
|
||||
// we'll only update the layout list if the text class has changed
|
||||
// or we've moved from one inset to another
|
||||
DocumentClass const * text_class = &buffer->params().documentClass();
|
||||
|
Loading…
Reference in New Issue
Block a user