From 49b838a3206be74d84b867de8e715ae99729a9e8 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 16 Jan 2012 15:07:04 +0000 Subject: [PATCH] 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 --- src/TocBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TocBackend.cpp b/src/TocBackend.cpp index a66b307d5d..656f326e15 100644 --- a/src/TocBackend.cpp +++ b/src/TocBackend.cpp @@ -70,7 +70,7 @@ docstring const & TocItem::str() const docstring const & TocItem::tooltip() const { - return tooltip_; + return tooltip_.empty() ? str_ : tooltip_; }