mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 11:08:41 +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();
|
d->resetFilter();
|
||||||
|
|
||||||
if (!d->owner_.documentBufferView()) {
|
if (!d->owner_.currentBufferView()) {
|
||||||
d->model_->clear();
|
d->model_->clear();
|
||||||
setEnabled(false);
|
setEnabled(false);
|
||||||
d->text_class_ = 0;
|
d->text_class_ = 0;
|
||||||
d->inset_ = 0;
|
d->inset_ = 0;
|
||||||
return;
|
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
|
// we'll only update the layout list if the text class has changed
|
||||||
// or we've moved from one inset to another
|
// or we've moved from one inset to another
|
||||||
DocumentClass const * text_class = &buffer->params().documentClass();
|
DocumentClass const * text_class = &buffer->params().documentClass();
|
||||||
|
Loading…
Reference in New Issue
Block a user