]> git.lyx.org Git - lyx.git/blobdiff - src/buffer_funcs.cpp
Fix memory leak.
[lyx.git] / src / buffer_funcs.cpp
index 99d03cd960b8bd30776f0bbaf14a01ce93a3ab06..66ba0dc797a6ea75700de8a74735fa8cd9bc9fab 100644 (file)
@@ -26,6 +26,7 @@
 #include "InsetIterator.h"
 #include "Language.h"
 #include "LaTeX.h"
+#include "Layout.h"
 #include "LyX.h"
 #include "lyxlayout_ptr_fwd.h"
 #include "TextClass.h"
@@ -347,7 +348,7 @@ depth_type getDepth(DocIterator const & it)
 depth_type getItemDepth(ParIterator const & it)
 {
        Paragraph const & par = *it;
-       LYX_LABEL_TYPES const labeltype = par.layout()->labeltype;
+       LabelType const labeltype = par.layout()->labeltype;
 
        if (labeltype != LABEL_ENUMERATE && labeltype != LABEL_ITEMIZE)
                return 0;
@@ -625,8 +626,8 @@ void updateLabels(Buffer const & buf, bool childonly)
        // FIXME
        // the embedding signal is emitted with structureChanged signal
        // this is inaccurate so these two will be separated later.
-       cbuf.embeddedFiles().update();
-       cbuf.embeddingChanged();
+       //cbuf.embeddedFiles().update();
+       //cbuf.embeddingChanged();
 }