]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNomencl.cpp
Make script inset much tighter in texted.
[lyx.git] / 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 ?