]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetExternal.cpp
Fix empty width support for Box inset
[lyx.git] / src / insets / InsetExternal.cpp
index ea51664978c33fca4dee8ea53e9d1791182b3240..9d4d6c168448c7b24ac7da362866ff66bbf60e71 100644 (file)
@@ -392,7 +392,7 @@ InsetExternal::~InsetExternal()
 }
 
 
-bool InsetExternal::setMouseHover(BufferView const * bv, bool mouse_hover)
+bool InsetExternal::setMouseHover(BufferView const * bv, bool mouse_hover) const
 {
        mouse_hover_[bv] = mouse_hover;
        return true;
@@ -622,7 +622,7 @@ void InsetExternal::fileChanged() const
                return;
 
        RenderMonitoredPreview * const ptr = renderer_->asMonitoredPreview();
-       LASSERT(ptr, /**/);
+       LASSERT(ptr, return);
 
        ptr->removePreview(*buffer);
        add_preview_and_start_loading(*ptr, *this, *buffer);
@@ -691,9 +691,13 @@ void InsetExternal::latex(otexstream & os, OutputParams const & runparams) const
 }
 
 
-int InsetExternal::plaintext(odocstream & os,
-                            OutputParams const & runparams) const
+int InsetExternal::plaintext(odocstringstream & os,
+                            OutputParams const & runparams, size_t) const
 {
+       // this is too slow for constant use
+       if (runparams.for_tooltip)
+               return 0;
+
        os << '\n'; // output external material on a new line
        external::writeExternal(params_, "Ascii", buffer(), os,
                                *(runparams.exportdata), false,