Author: baum
Date: Sun Mar 20 13:12:08 2011
New Revision: 37976
URL: http://www.lyx.org/trac/changeset/37976

Log:
fix bug 7351 part 3: Do not count inline formulas for eqn number counter

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

Modified: lyx-devel/trunk/src/mathed/InsetMathHull.cpp
==============================================================================
--- lyx-devel/trunk/src/mathed/InsetMathHull.cpp        Sun Mar 20 12:39:02 
2011        (r37975)
+++ lyx-devel/trunk/src/mathed/InsetMathHull.cpp        Sun Mar 20 13:12:08 
2011        (r37976)
@@ -1965,6 +1965,9 @@
 bool InsetMathHull::haveNumbers() const
 {
        bool havenumbers = false;
+       // inline formulas are never numbered (bug 7351 part 3)
+       if (getType() == hullSimple)
+               return havenumbers;
        for (size_t i = 0; i != numbered_.size(); ++i) {
                if (numbered_[i]) {
                        havenumbers = true;

Reply via email to