]> git.lyx.org Git - features.git/blobdiff - src/insets/Inset.cpp
Introduce Inset::isLabeled() in order to avoid reimplementing Inset::initView() every...
[features.git] / src / insets / Inset.cpp
index 7cc726876a6695ad7253f9c695155fa211ef7f88..9c4b014bee12dcd148c8497aed9e66048fb105d0 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "Inset.h"
 
+#include "buffer_funcs.h"
 #include "Buffer.h"
 #include "BufferParams.h"
 #include "BufferView.h"
@@ -150,6 +151,13 @@ docstring Inset::name() const
 }
 
 
+void Inset::initView()
+{
+       if (isLabeled())
+               lyx::updateLabels(buffer());
+}
+
+
 docstring Inset::toolTip(BufferView const &, int, int) const
 {
        return docstring();