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/trunk@40626 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2012-01-16 15:07:04 +00:00
parent 12b16d1ae9
commit 49b838a320

View File

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