From 885084fea8de3f95c0d5f7bd55c6784d1f4134f0 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 16 Jan 2012 15:13:26 +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/branches/BRANCH_2_0_X@40628 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/TocBackend.cpp | 2 +- status.20x | 3 +++ 2 files changed, 4 insertions(+), 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_; } diff --git a/status.20x b/status.20x index bc27d5e5c2..7d10fcd92a 100644 --- a/status.20x +++ b/status.20x @@ -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 -- 2.39.5