If we don't have a tooltip in the TOC, then use the display string

as the tooltip. This isn't redundant, since the TOC itself might
truncate the display string.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40628 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2012-01-16 15:13:26 +00:00
parent af5938cb6c
commit 885084fea8
2 changed files with 4 additions and 1 deletions

View File

@ -70,7 +70,7 @@ docstring const & TocItem::str() const
docstring const & TocItem::tooltip() const
{
return tooltip_;
return tooltip_.empty() ? str_ : tooltip_;
}

View File

@ -76,6 +76,9 @@ What's new
Detect value change of preferences path to hunspell dictionaries
to avoid the need for a restart. This is related to bug 7884.
- We now use the display string as a tooltip in the Outliner, if no
other tooltip is given.
* DOCUMENTATION AND LOCALIZATION