X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbuffer_funcs.cpp;h=17aab767c2c91c04b3a86a78533a7c5d97cd87da;hb=cca78e3c8ae27431323746abd64f9d7db017099d;hp=ed841f235cbc9cc90ce6fb05f98e06c7874627a5;hpb=d7a30a2ea1511138d418ab682aca9c9e45f7bea0;p=lyx.git diff --git a/src/buffer_funcs.cpp b/src/buffer_funcs.cpp index ed841f235c..17aab767c2 100644 --- a/src/buffer_funcs.cpp +++ b/src/buffer_funcs.cpp @@ -466,7 +466,6 @@ void updateLabels(Buffer const & buf, ParIterator & parit) InsetList::const_iterator end = parit->insetList().end(); for (; iit != end; ++iit) { parit.pos() = iit->pos; - iit->inset->setBuffer(const_cast(buf)); iit->inset->updateLabels(parit); } } @@ -491,6 +490,7 @@ void updateLabels(Buffer const & buf, bool childonly) // start over the counters textclass.counters().reset(); buf.clearReferenceCache(); + buf.inset().setBuffer(const_cast(buf)); buf.updateMacros(); }