From: Georg Baum Date: Sun, 20 Mar 2011 12:12:08 +0000 (+0000) Subject: fix bug 7351 part 3: Do not count inline formulas for eqn number counter X-Git-Tag: 2.0.0~475 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=85df237aff02ddedc5f9a09642d811d2b22d827d;p=features.git 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 --- 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;