]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCollapsable.cpp
Pure HTML output for math macros.
[lyx.git] / src / insets / InsetCollapsable.cpp
index 4497e937d33990477bec993d8ee4561ee2d5977c..dc9939e5acfe1e63223cdf10574726acca0a79bd 100644 (file)
@@ -573,10 +573,14 @@ void InsetCollapsable::setLabel(docstring const & l)
 }
 
 
-docstring const InsetCollapsable::buttonLabel(BufferView const &) const
+docstring const InsetCollapsable::buttonLabel(BufferView const & bv) const
 {
-       return labelstring_.empty() ? 
+       docstring const label = labelstring_.empty() ? 
                translateIfPossible(getLayout().labelstring()) : labelstring_;
+       InsetLayout const & il = getLayout();
+       if (!il.contentaslabel() || geometry(bv) != ButtonOnly)
+               return label;
+       return getNewLabel(label);
 }