Author: rgheck
Date: Thu May  5 22:31:47 2011
New Revision: 38597
URL: http://www.lyx.org/trac/changeset/38597

Log:
Fix bug #7531, also reported by Jim Oldfield. Need to use master
buffer's counters.

Modified:
   lyx-devel/trunk/src/mathed/InsetMathHull.cpp

Modified: lyx-devel/trunk/src/mathed/InsetMathHull.cpp
==============================================================================
--- lyx-devel/trunk/src/mathed/InsetMathHull.cpp        Thu May  5 22:18:16 
2011        (r38596)
+++ lyx-devel/trunk/src/mathed/InsetMathHull.cpp        Thu May  5 22:31:47 
2011        (r38597)
@@ -245,7 +245,8 @@
        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) {

Reply via email to