]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCommandParams.cpp
Allow LyX format to be written to View>Source window.
[lyx.git] / src / insets / InsetCommandParams.cpp
index d3dccdd4069f2e38487ce2c08699e2750a025f4d..cc75a0eb59f502b6b79e5571e7704962c724d3f8 100644 (file)
@@ -84,7 +84,7 @@ static ParamInfo const & findInfo(InsetCode code, string const & cmdName)
        default:
                LASSERT(false, /**/);
        }
-       static const ParamInfo pi;
+       static ParamInfo pi;
        return pi; // to silence the warning
 }
 
@@ -376,7 +376,7 @@ docstring InsetCommandParams::prepareCommand(OutputParams const & runparams,
                for (size_t n = 0; n < command.size(); ++n) {
                        try {
                                char_type const c = command[n];
-                               docstring const latex = runparams.encoding->latexChar(c);
+                               docstring const latex = runparams.encoding->latexChar(c).first;
                                result += latex;
                                if (latex.length() > 1 && latex[latex.length() - 1] != '}') {
                                        // Prevent eating of a following