From: Richard Kimberly Heck Date: Thu, 3 May 2018 04:05:21 +0000 (-0400) Subject: Do not step equation numbers in deleted equations. X-Git-Tag: 2.3.2~50 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e67c119d804b8b7b4a17a264c2012739a10b17f9;p=features.git Do not step equation numbers in deleted equations. (cherry picked from commit df5805917be108b0cce8b502f7b6906f59b0e2ea) --- diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index 0a7ddd6d00..0f7e9a85df 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -316,8 +316,12 @@ void InsetMathHull::updateBuffer(ParIterator const & it, UpdateType utype) counter_map[eqstr] = cnts.value(eqstr); for (size_t i = 0; i != label_.size(); ++i) { if (numbered(i)) { - cnts.step(eqstr, utype); - numbers_[i] = cnts.theCounter(eqstr, lang); + Paragraph const & par = it.paragraph(); + if (!par.isDeleted(it.pos())) { + cnts.step(eqstr, utype); + numbers_[i] = cnts.theCounter(eqstr, lang); + } else + numbers_[i] = from_ascii("#"); } else numbers_[i] = empty_docstring(); } diff --git a/status.23x b/status.23x index ff82428777..14a978aecd 100644 --- a/status.23x +++ b/status.23x @@ -151,6 +151,8 @@ What's new - View and change Plural, Capitalization, and No Prefix options for cross-references from the context menu (bug 11070). +- Don't step counters in deleted material (bug 11135). + * INTERNALS