]> git.lyx.org Git - features.git/blobdiff - src/insets/Inset.h
setMouseHover() functions can be const.
[features.git] / src / insets / Inset.h
index 5ff1d53275c79045172e5e6e0dd4d14f12d79e99..baf58bf773d55d0b0bfc3475f348c2a2d8a260ea 100644 (file)
@@ -286,7 +286,8 @@ public:
                { return false; }
        /// is called when the mouse enters or leaves this inset
        /// return true if this inset needs a repaint
-       virtual bool setMouseHover(BufferView const *, bool) { return false; }
+       virtual bool setMouseHover(BufferView const *, bool) const
+               { return false; }
        /// return true if this inset is hovered (under mouse)
        /// This is by now only used by mathed to draw corners 
        /// (Inset::drawMarkers() and Inset::drawMarkers2()).