]> git.lyx.org Git - features.git/blobdiff - src/buffer_funcs.cpp
header
[features.git] / src / buffer_funcs.cpp
index 6c081b67c30313a15dafb41677614d376bf41c5a..0f2f4d89d2404773c68e31c04803263d1c3eed33 100644 (file)
@@ -12,7 +12,6 @@
 
 #include <config.h>
 
-#include "BaseClassList.h"
 #include "buffer_funcs.h"
 #include "Buffer.h"
 #include "BufferList.h"
@@ -23,7 +22,6 @@
 #include "Floating.h"
 #include "FloatList.h"
 #include "InsetList.h"
-#include "InsetIterator.h"
 #include "Language.h"
 #include "LaTeX.h"
 #include "Layout.h"
@@ -492,6 +490,7 @@ void updateLabels(Buffer const & buf, bool childonly)
 
                // start over the counters
                textclass.counters().reset();
+               buf.clearReferenceCache();
        }
 
        Buffer & cbuf = const_cast<Buffer &>(buf);