commit 9370135c3e8d81c7e1ecc8548e8b5492a7f682b6
Author: Juergen Spitzmueller <[email protected]>
Date: Sat Apr 20 19:42:29 2019 +0200
reset bibitem counter in the second updateBuffer() routine as well
Fixes: #8499
---
src/Buffer.cpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index eeadf0a..6f53a56 100644
--- a/src/Buffer.cpp
+++ b/src/Buffer.cpp
@@ -5257,6 +5257,11 @@ void Buffer::updateBuffer(ParIterator & parit,
UpdateType utype) const
// to resolve macros in it.
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;
pit_type const lastpit = parit.lastpit();
for ( ; parit.pit() <= lastpit ; ++parit.pit()) {