DocumentClass const & textclass = master->params().documentClass();
FileNamePairList old_bibfiles;
- // do this only if we are the top-level Buffer
- if (master == this) {
+ // Do this only if we are the top-level Buffer. We also need to account
+ // for the case of a previewed child with ignored parent here.
+ if (master == this && !d->ignore_parent) {
textclass.counters().reset(from_ascii("bibitem"));
reloadBibInfoCache();
// we will re-read this cache as we go through, but we need