]> git.lyx.org Git - features.git/commitdiff
Backport fix for #7531 to branch.
authorRichard Heck <rgheck@comcast.net>
Thu, 5 May 2011 20:41:59 +0000 (20:41 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 5 May 2011 20:41:59 +0000 (20:41 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@38598 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathHull.cpp
status.20x

index e58b722c15060cc4d72bc471a82e886203ae091e..686e4274077c61251d66d4ec7e6ffb242cfa0789 100644 (file)
@@ -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) {
index b7819de3d59a288cf582b8853c2f454c5a31d972..29aceee7247e12c10a8b234693d07412ffb29ce8 100644 (file)
@@ -31,6 +31,8 @@ What's new
 
 * USER INTERFACE
 
+- Equation numbering in child documents now works properly (bug 7531).
+
 - Updated Japanese User Interface Localization.