mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
Do not step equation numbers in deleted equations.
(cherry picked from commit df5805917b
)
This commit is contained in:
parent
51239977c5
commit
e67c119d80
@ -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();
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user