]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.cpp
Micro-optimization.
[lyx.git] / src / BufferView.cpp
index c9fb198eb04e61f1a671939bd4f0e3501cd8284b..1e0f4b249dac13f86c04cf4d2f22f7a49dae9df8 100644 (file)
@@ -39,7 +39,6 @@
 #include "LyX.h"
 #include "LyXAction.h"
 #include "lyxfind.h"
-#include "LyXFunc.h"
 #include "Layout.h"
 #include "LyXRC.h"
 #include "MetricsInfo.h"
@@ -913,7 +912,7 @@ void BufferView::updateLayout(DocumentClass const * const oldlayout)
        setCursor(backcur.asDocIterator(&buffer_));
 
        buffer_.errors("Class Switch");
-       buffer_.updateLabels();
+       buffer_.updateBuffer();
 }
 
 /** Return the change status at cursor position, taking in account the
@@ -2228,7 +2227,7 @@ bool BufferView::checkDepm(Cursor & cur, Cursor & old)
 
        d->cursor_ = cur;
 
-       buffer_.updateLabels();
+       buffer_.updateBuffer();
        buffer_.changed(true);
        return true;
 }