From 85df237aff02ddedc5f9a09642d811d2b22d827d Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sun, 20 Mar 2011 12:12:08 +0000 Subject: [PATCH] fix bug 7351 part 3: Do not count inline formulas for eqn number counter git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37976 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathHull.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index 9c1ec053ab..e49f8e1d57 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -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; -- 2.39.2