]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNomencl.cpp
Circumvent odd stmary font metrics (part of #9990).
[lyx.git] / src / insets / InsetNomencl.cpp
index 227976623bbb637fcc38fb4b3096519acc7b9de0..7ebfe4ae2c58657953507f3e3fd0ceae65fcb991 100644 (file)
@@ -75,12 +75,8 @@ ParamInfo const & InsetNomencl::findInfo(string const & /* cmdName */)
 docstring InsetNomencl::screenLabel() const
 {
        size_t const maxLabelChars = 25;
-
        docstring label = _("Nom: ") + getParam("symbol");
-       if (label.size() > maxLabelChars) {
-               label.erase(maxLabelChars - 3);
-               label += "...";
-       }
+       support::truncateWithEllipsis(label, maxLabelChars);
        return label;
 }