]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNomencl.cpp
Extend the notermination flag to math as well.
[lyx.git] / src / insets / InsetNomencl.cpp
index cd0a526ea0222f5fe36702627fa9c72febe18f01..a32191b78aa595ee79a6482d8c5723e6c92e04db 100644 (file)
@@ -279,7 +279,7 @@ docstring nomenclWidest(Buffer const & buffer, OutputParams const & runparams)
        docstring latex_symb;
        for (size_t n = 0; n < symb.size(); ++n) {
                try {
-                       latex_symb += runparams.encoding->latexChar(symb[n]);
+                       latex_symb += runparams.encoding->latexChar(symb[n]).first;
                } catch (EncodingException & /* e */) {
                        if (runparams.dryrun) {
                                latex_symb += "<" + _("LyX Warning: ")
@@ -334,9 +334,9 @@ InsetCode InsetPrintNomencl::lyxCode() const
 }
 
 
-docstring InsetPrintNomencl::contextMenuName() const
+string InsetPrintNomencl::contextMenuName() const
 {
-       return from_ascii("context-nomenclprint");
+       return "context-nomenclprint";
 }