From: Jürgen Spitzmüller Date: Fri, 22 Aug 2008 16:12:29 +0000 (+0000) Subject: * src/inset/InsetNomencl.cpp: X-Git-Tag: 1.6.10~3605 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b556fe1bcb50e067ed27ead0c7d0dda884e20845;p=features.git * src/inset/InsetNomencl.cpp: - indicate content of nomencl inset (bug 5183). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26223 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetNomencl.cpp b/src/insets/InsetNomencl.cpp index e063795760..dc5e2489e3 100644 --- a/src/insets/InsetNomencl.cpp +++ b/src/insets/InsetNomencl.cpp @@ -55,7 +55,14 @@ ParamInfo const & InsetNomencl::findInfo(string const & /* cmdName */) docstring InsetNomencl::screenLabel() const { - return _("Nom"); + size_t const maxLabelChars = 25; + + docstring label = _("Nom: ") + getParam("symbol"); + if (label.size() > maxLabelChars) { + label.erase(maxLabelChars - 3); + label += "..."; + } + return label; }