]> git.lyx.org Git - features.git/commitdiff
Fix monolithic build
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 6 Feb 2017 10:38:13 +0000 (11:38 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 6 Feb 2017 10:39:16 +0000 (11:39 +0100)
I gave up understanding why operator==(docstring,char cont *) does not
work in this case.

src/frontends/qt4/Menus.cpp

index 535ee31d865d258de1799bfc61b9485f1359893c..3e2d3c2884c65ca070ce8887493bb6bf56d95678 100644 (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)