X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFootlike.cpp;h=5685e865bfa8407ed6b6eec42966e3b9b0924127;hb=83074c431c97f5447ddbfd8394c97c1118c93693;hp=afd23295307bb8d33da8bc6b29f4219728108ca9;hpb=3f27f951cbc2521edfbf78792839d61306bdb978;p=lyx.git diff --git a/src/insets/InsetFootlike.cpp b/src/insets/InsetFootlike.cpp index afd2329530..5685e865bf 100644 --- a/src/insets/InsetFootlike.cpp +++ b/src/insets/InsetFootlike.cpp @@ -18,12 +18,15 @@ #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) @@ -50,7 +53,8 @@ void InsetFootlike::draw(PainterInfo & pi, int x, int y) const void InsetFootlike::write(ostream & os) const { - os << to_utf8(layoutName()) << "\n"; + // The layoutName may contain a "InTitle" qualifier + os << to_utf8(token(layoutName(), char_type(':'), 0)) << "\n"; InsetCollapsable::write(os); }