X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetRef.cpp;h=5ac6b469665bbc0bfd4bf734d8178ebe7e136ee9;hb=dae8555234f0e5c8358b91c307d91b219c664617;hp=380a0ea7d2f30ce86c5eb696f8bb390c71a08e20;hpb=2ca21d2c155215ca53efc865fdd05cdc42fe6e50;p=lyx.git diff --git a/src/insets/InsetRef.cpp b/src/insets/InsetRef.cpp index 380a0ea7d2..5ac6b46966 100644 --- a/src/insets/InsetRef.cpp +++ b/src/insets/InsetRef.cpp @@ -378,4 +378,9 @@ string const & InsetRef::getName(int type) } +docstring InsetRef::getTOCString() const +{ + return tooltip_.empty() ? screen_label_ : tooltip_; +} + } // namespace lyx