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:
Vincent van Ravesteijn 2009-09-05 23:40:56 +00:00
parent 99d1937bec
commit 26ae0f7eca

View File

@ -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();