From: Richard Heck Date: Thu, 5 May 2011 20:31:47 +0000 (+0000) Subject: Fix bug #7531, also reported by Jim Oldfield. Need to use master X-Git-Tag: 2.1.0beta1~3335 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=47a95c109498e0380b8d7c654255f92a81c0a6c2;p=features.git Fix bug #7531, also reported by Jim Oldfield. Need to use master buffer's counters. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38597 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index e58b722c15..686e427407 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -245,7 +245,8 @@ void InsetMathHull::updateBuffer(ParIterator const & it, UpdateType utype) if (haveNumbers()) { BufferParams const & bp = buffer_->params(); string const & lang = it->getParLanguage(bp)->code(); - Counters & cnts = bp.documentClass().counters(); + Counters & cnts = + buffer_->masterBuffer()->params().documentClass().counters(); // right now, we only need to do this at export time if (utype == OutputUpdate) {