X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFootlike.cpp;h=5685e865bfa8407ed6b6eec42966e3b9b0924127;hb=d4550b7a4d64e9ff772cf3a7635cb4ca532fb340;hp=05d2ba87173ac1fade4d569cef061be8c1b9a0fa;hpb=af8ba5e0696c0e1989effe4179c990a054bc06df;p=lyx.git diff --git a/src/insets/InsetFootlike.cpp b/src/insets/InsetFootlike.cpp index 05d2ba8717..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,15 +53,15 @@ 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); } bool InsetFootlike::insetAllowed(InsetCode code) const { - if (code == FOOT_CODE || code == MARGIN_CODE || code == FLOAT_CODE - || code == LISTINGS_CODE) + if (code == FOOT_CODE || code == MARGIN_CODE || code == FLOAT_CODE) return false; return InsetCollapsable::insetAllowed(code); }