]> git.lyx.org Git - lyx.git/blobdiff - src/buffer_funcs.cpp
Change the "empty layout" to the "plain layout", to try to avoid confusion.
[lyx.git] / src / buffer_funcs.cpp
index ed841f235cbc9cc90ce6fb05f98e06c7874627a5..17aab767c2c91c04b3a86a78533a7c5d97cd87da 100644 (file)
@@ -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<Buffer &>(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<Buffer &>(buf));
                buf.updateMacros();
        }