]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFootlike.cpp
Fix wrong painting of lines right of multicol
[lyx.git] / src / insets / InsetFootlike.cpp
index 08cc220374d1f51ab3904aff34a78e4b9d41d0ee..afd23295307bb8d33da8bc6b29f4219728108ca9 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -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);
 }