From: Vincent van Ravesteijn Date: Sat, 5 Sep 2009 23:40:56 +0000 (+0000) Subject: Fix LyX. X-Git-Tag: 2.0.0~5545 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=26ae0f7eca9816c8525639a171cb3992d568b3a4;p=features.git 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 --- diff --git a/src/frontends/qt4/LayoutBox.cpp b/src/frontends/qt4/LayoutBox.cpp index a0f2e3c2e9..3cb4d433e5 100644 --- a/src/frontends/qt4/LayoutBox.cpp +++ b/src/frontends/qt4/LayoutBox.cpp @@ -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();