Fix monolithic build

I gave up understanding why operator==(docstring,char cont *) does not
work in this case.
This commit is contained in:
Jean-Marc Lasgouttes 2017-02-06 11:38:13 +01:00
parent 95eecc8e4a
commit ba8da35afd

View File

@ -1676,7 +1676,7 @@ void MenuDefinition::expandCaptions(Buffer const * buf, bool switchcap)
for (pair<docstring, InsetLayout> const & il : dc.insetLayouts()) {
docstring instype;
docstring const type = split(il.first, instype, ':');
if (instype == "Caption") {
if (instype == from_ascii("Caption")) {
// skip forbidden caption types
FuncRequest const cmd = switchcap
? FuncRequest(LFUN_INSET_MODIFY, from_ascii("changetype ") + type)