Do not step equation numbers in deleted equations.

(cherry picked from commit df5805917b)
This commit is contained in:
Richard Kimberly Heck 2018-05-03 00:05:21 -04:00
parent 51239977c5
commit e67c119d80
2 changed files with 8 additions and 2 deletions

View File

@ -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();
}

View File

@ -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