]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFootlike.cpp
Fix wrongly copy-pasted entries in SpellcheckerUi.ui
[lyx.git] / src / insets / InsetFootlike.cpp
index f9adfab0c105e5db04d2a0117368cb64474dac73..afd23295307bb8d33da8bc6b29f4219728108ca9 100644 (file)
@@ -15,6 +15,7 @@
 #include "Buffer.h"
 #include "BufferView.h"
 #include "BufferParams.h"
+#include "Font.h"
 #include "MetricsInfo.h"
 
 #include <iostream>
@@ -24,7 +25,7 @@ using namespace std;
 namespace lyx {
 
 
-InsetFootlike::InsetFootlike(Buffer const & buf)
+InsetFootlike::InsetFootlike(Buffer * buf)
        : InsetCollapsable(buf)
 {}
 
@@ -49,7 +50,7 @@ void InsetFootlike::draw(PainterInfo & pi, int x, int y) const
 
 void InsetFootlike::write(ostream & os) const
 {
-       os << to_utf8(name()) << "\n";
+       os << to_utf8(layoutName()) << "\n";
        InsetCollapsable::write(os);
 }