From: Daniel Ramoeller Date: Thu, 30 Mar 2023 20:12:08 +0000 (-0400) Subject: Fix bug #12721. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=211554d0df4b76b63217f67077992b5b258cc549;p=features.git Fix bug #12721. --- diff --git a/src/insets/InsetExternal.cpp b/src/insets/InsetExternal.cpp index 92308db704..0581d2e6fc 100644 --- a/src/insets/InsetExternal.cpp +++ b/src/insets/InsetExternal.cpp @@ -933,4 +933,10 @@ string InsetExternal::params2string(InsetExternalParams const & params, return data.str(); } + +docstring InsetExternal::toolTip(BufferView const &, int, int) const +{ + return from_utf8(params().filename.onlyFileName()); +} + } // namespace lyx diff --git a/src/insets/InsetExternal.h b/src/insets/InsetExternal.h index f124445f5e..ce71c94df3 100644 --- a/src/insets/InsetExternal.h +++ b/src/insets/InsetExternal.h @@ -177,7 +177,8 @@ private: bool isPreviewed() const; /// Do we have the right renderer (button, graphic or monitored preview)? bool isRendererValid() const; - + /// + docstring toolTip(BufferView const & bv, int x, int y) const override; /// The current params InsetExternalParams params_; /// The thing that actually draws the image on LyX's screen.