X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFootlike.cpp;h=5685e865bfa8407ed6b6eec42966e3b9b0924127;hb=9c0281126e5b819a6c10afa1bb585b76cdc4dca2;hp=4467081d7e24a239ff2f000fc0a6b7a1e549160a;hpb=82c7e15e6444a8566a9b7b8053b830d03058383e;p=lyx.git diff --git a/src/insets/InsetFootlike.cpp b/src/insets/InsetFootlike.cpp index 4467081d7e..5685e865bf 100644 --- a/src/insets/InsetFootlike.cpp +++ b/src/insets/InsetFootlike.cpp @@ -15,14 +15,18 @@ #include "Buffer.h" #include "BufferView.h" #include "BufferParams.h" +#include "Font.h" #include "MetricsInfo.h" +#include "support/lstrings.h" + #include 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); }