]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFootlike.cpp
Merge branch 'master' into biblatex2
[lyx.git] / src / insets / InsetFootlike.cpp
index 4467081d7e24a239ff2f000fc0a6b7a1e549160a..5685e865bfa8407ed6b6eec42966e3b9b0924127 100644 (file)
 #include "Buffer.h"
 #include "BufferView.h"
 #include "BufferParams.h"
+#include "Font.h"
 #include "MetricsInfo.h"
 
+#include "support/lstrings.h"
+
 #include <iostream>
 
 using namespace std;
 
 namespace lyx {
 
+using support::token;
 
 InsetFootlike::InsetFootlike(Buffer * buf)
        : InsetCollapsable(buf)
@@ -49,7 +53,8 @@ void InsetFootlike::draw(PainterInfo & pi, int x, int y) const
 
 void InsetFootlike::write(ostream & os) const
 {
-       os << to_utf8(name()) << "\n";
+       // The layoutName may contain a "InTitle" qualifier
+       os << to_utf8(token(layoutName(), char_type(':'), 0)) << "\n";
        InsetCollapsable::write(os);
 }