diff --git a/src/buffer_funcs.cpp b/src/buffer_funcs.cpp index ed841f235c..3fab6dda8d 100644 --- a/src/buffer_funcs.cpp +++ b/src/buffer_funcs.cpp @@ -491,6 +491,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(); }