]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloat.cpp
This optional argument to the InsetCollapsable constructor
[lyx.git] / src / insets / InsetFloat.cpp
index 0f514bd1c35a5258a31946162ce46f6d56d665c3..0a537598697556e6d393cdc038aed8aaafefb1e0 100644 (file)
@@ -129,19 +129,11 @@ InsetFloat::~InsetFloat()
 
 docstring InsetFloat::toolTip(BufferView const & bv, int x, int y) const
 {
-       if (InsetCollapsable::toolTip(bv, x, y).empty())
+       if (InsetCollapsable::toolTip(bv, x, y).empty() || isOpen())
                return docstring();
 
-       docstring default_tip;
-       if (isOpen())
-               default_tip = _("Left-click to collapse the inset");
-       else
-               default_tip = _("Left-click to open the inset");
        OutputParams rp(&buffer().params().encoding());
-       docstring caption_tip = getCaptionText(rp);
-       if (!isOpen() && !caption_tip.empty())
-               return caption_tip + '\n' + default_tip;
-       return default_tip;
+       return getCaptionText(rp);
 }