]> git.lyx.org Git - lyx.git/blobdiff - src/buffer_funcs.cpp
Fulfill promise to Andre: TextClass_ptr --> TextClassPtr.
[lyx.git] / src / buffer_funcs.cpp
index 87e97376c144834b096769aa899cfb0f1b91e035..ee2a68a37911bd9d7e71d6b2cbddb756024ec885 100644 (file)
@@ -410,7 +410,7 @@ void setLabel(Buffer const & buf, ParIterator & it)
 {
        TextClass const & textclass = buf.params().getTextClass();
        Paragraph & par = it.paragraph();
-       Layout_ptr const & layout = par.layout();
+       LayoutPtr const & layout = par.layout();
        Counters & counters = textclass.counters();
 
        if (par.params().startOfAppendix()) {
@@ -621,6 +621,11 @@ void updateLabels(Buffer const & buf, bool childonly)
        cbuf.tocBackend().update();
        if (!childonly)
                cbuf.structureChanged();
+       // FIXME
+       // the embedding signal is emitted with structureChanged signal
+       // this is inaccurate so these two will be separated later.
+       cbuf.embeddedFiles().update();
+       cbuf.embeddingChanged();
 }