]> git.lyx.org Git - lyx.git/blobdiff - src/TocBackend.cpp
Fix bug #6744: Crash when copying an inset from a deleted section.
[lyx.git] / src / TocBackend.cpp
index 2ba097cab8327909e8562318eef24c1bdeff5df7..ed80366f77810bfcde312259c6de5d032b17d899 100644 (file)
@@ -44,8 +44,8 @@ namespace lyx {
 //
 ///////////////////////////////////////////////////////////////////////////
 
-TocItem::TocItem(DocIterator const & dit, int d, docstring const & s)
-       : dit_(dit), depth_(d), str_(s)
+TocItem::TocItem(DocIterator const & dit, int d, docstring const & s,
+       docstring const & t) : dit_(dit), depth_(d), str_(s), tooltip_(t)
 {
 }
 
@@ -68,6 +68,12 @@ docstring const & TocItem::str() const
 }
 
 
+docstring const & TocItem::tooltip() const
+{
+       return tooltip_;
+}
+
+
 docstring const TocItem::asString() const
 {
        return docstring(4 * depth_, ' ') + str_;