From 211554d0df4b76b63217f67077992b5b258cc549 Mon Sep 17 00:00:00 2001 From: Daniel Ramoeller Date: Thu, 30 Mar 2023 16:12:08 -0400 Subject: [PATCH] Fix bug #12721. --- src/insets/InsetExternal.cpp | 6 ++++++ src/insets/InsetExternal.h | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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. -- 2.39.5