]> git.lyx.org Git - features.git/commitdiff
Fix bug #12721.
authorDaniel Ramoeller <d.lyx@web.de>
Thu, 30 Mar 2023 20:12:08 +0000 (16:12 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Thu, 30 Mar 2023 20:12:08 +0000 (16:12 -0400)
src/insets/InsetExternal.cpp
src/insets/InsetExternal.h

index 92308db704c3c020bddc3525f5054b024433d994..0581d2e6fcc55f799f916d11037bbc0858ba37ab 100644 (file)
@@ -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
index f124445f5eea4723d50612b0f6abb2bf361365d9..ce71c94df344edf2f19681f139788dab892eff85 100644 (file)
@@ -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.