mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
reset bibitem counter in the second updateBuffer() routine as well
Fixes: #8499
This commit is contained in:
parent
4f884fc92d
commit
9370135c3e
@ -5257,6 +5257,11 @@ void Buffer::updateBuffer(ParIterator & parit, UpdateType utype) const
|
|||||||
// to resolve macros in it.
|
// to resolve macros in it.
|
||||||
parit.text()->setMacrocontextPosition(parit);
|
parit.text()->setMacrocontextPosition(parit);
|
||||||
|
|
||||||
|
// Reset bibitem counter in master (#8499)
|
||||||
|
Buffer const * const master = masterBuffer();
|
||||||
|
if (master == this && !d->ignore_parent)
|
||||||
|
master->params().documentClass().counters().reset(from_ascii("bibitem"));
|
||||||
|
|
||||||
depth_type maxdepth = 0;
|
depth_type maxdepth = 0;
|
||||||
pit_type const lastpit = parit.lastpit();
|
pit_type const lastpit = parit.lastpit();
|
||||||
for ( ; parit.pit() <= lastpit ; ++parit.pit()) {
|
for ( ; parit.pit() <= lastpit ; ++parit.pit()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user