]> git.lyx.org Git - features.git/commitdiff
fix bug 7351 part 3: Do not count inline formulas for eqn number counter
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sun, 20 Mar 2011 12:12:08 +0000 (12:12 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sun, 20 Mar 2011 12:12:08 +0000 (12:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37976 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathHull.cpp

index 9c1ec053abf721338e0667ea6356ce07347a22cd..e49f8e1d577b3287a6368cbca18180ecab0adbef 100644 (file)
@@ -1965,6 +1965,9 @@ int InsetMathHull::docbook(odocstream & os, OutputParams const & runparams) cons
 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;