]> git.lyx.org Git - features.git/commitdiff
If we don't have a tooltip in the TOC, then use the display string
authorRichard Heck <rgheck@comcast.net>
Mon, 16 Jan 2012 15:13:26 +0000 (15:13 +0000)
committerRichard Heck <rgheck@comcast.net>
Mon, 16 Jan 2012 15:13:26 +0000 (15:13 +0000)
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
status.20x

index a66b307d5d9e3e7595a42d71847fc904d8f2cc4c..656f326e15c956aef9495823e5d6ef97f8261800 100644 (file)
@@ -70,7 +70,7 @@ docstring const & TocItem::str() const
 
 docstring const & TocItem::tooltip() const
 {
-       return tooltip_;
+       return tooltip_.empty() ? str_ : tooltip_;
 }
 
 
index bc27d5e5c2b162bfe7201da3c8d4996a8927c35e..7d10fcd92a2f96ada84f9058bf8597fb792e4b52 100644 (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