mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
Display index name in InsetIndex label
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20313 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ce1c4adaa7
commit
18d587cb7e
@ -34,7 +34,14 @@ InsetIndex::InsetIndex(InsetCommandParams const & p)
|
||||
|
||||
docstring const InsetIndex::getScreenLabel(Buffer const &) const
|
||||
{
|
||||
return _("Idx");
|
||||
size_t const maxLabelChars = 25;
|
||||
|
||||
docstring label = "Idx:" + getParam("name");
|
||||
if (label.size() > maxLabelChars) {
|
||||
label.erase(maxLabelChars - 3);
|
||||
label += "...";
|
||||
}
|
||||
return label;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user