From b556fe1bcb50e067ed27ead0c7d0dda884e20845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Fri, 22 Aug 2008 16:12:29 +0000 Subject: [PATCH] * 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 --- src/insets/InsetNomencl.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; }