mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Do not step equation numbers in deleted equations.
This commit is contained in:
parent
200064e9a4
commit
df5805917b
@ -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)) {
|
||||
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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user