]> git.lyx.org Git - lyx.git/commitdiff
Do not escape makeindex chars in bibitemWidest.
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 3 Dec 2017 11:04:39 +0000 (12:04 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 3 Dec 2017 11:04:39 +0000 (12:04 +0100)
src/insets/InsetNomencl.cpp

index 07c2bed97303643f10826e3cef5a51261a43435f..880f0fff52aec86df97c015b3ef9995e00c6af15 100644 (file)
@@ -364,9 +364,11 @@ docstring nomenclWidest(Buffer const & buffer, OutputParams const & runparams)
                        if (inset->lyxCode() != NOMENCL_CODE)
                                continue;
                        nomencl = static_cast<InsetNomencl const *>(inset);
-                       docstring const symbol =
+                       // Use proper formatting. We do not escape makeindex chars here
+                       docstring const symbol = nomencl ?
                                nomencl->params().prepareCommand(runparams, nomencl->getParam("symbol"),
-                                                       nomencl->findInfo(string())["symbol"].handling());
+                                                       ParamInfo::HANDLING_LATEXIFY)
+                               : docstring();
                        // This is only an approximation,
                        // but the best we can get.
                        int const wx = use_gui ?