From 26ae0f7eca9816c8525639a171cb3992d568b3a4 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sat, 5 Sep 2009 23:40:56 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/LayoutBox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.5