]> git.lyx.org Git - features.git/commitdiff
* src/inset/InsetNomencl.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Fri, 22 Aug 2008 16:12:29 +0000 (16:12 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Fri, 22 Aug 2008 16:12:29 +0000 (16:12 +0000)
- 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

index e063795760c29b9bc1392cc4f60e46e4f2a270cd..dc5e2489e37c898b94b8b0acf4a88a402b1cd37b 100644 (file)
@@ -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;
 }