diff --git a/src/insets/Inset.cpp b/src/insets/Inset.cpp index 112fb6d9f7..4d19fa4b05 100644 --- a/src/insets/Inset.cpp +++ b/src/insets/Inset.cpp @@ -325,7 +325,7 @@ void Inset::drawMarkers2(PainterInfo & pi, int x, int y) const } -bool Inset::editing(BufferView * bv) const +bool Inset::editing(BufferView const * bv) const { return bv->cursor().isInside(this); } diff --git a/src/insets/Inset.h b/src/insets/Inset.h index eab36242b4..f3fe83ff0f 100644 --- a/src/insets/Inset.h +++ b/src/insets/Inset.h @@ -131,7 +131,7 @@ public: /// draw inset selection if necessary virtual void drawSelection(PainterInfo &, int, int) const {} /// - virtual bool editing(BufferView * bv) const; + virtual bool editing(BufferView const * bv) const; /// virtual bool showInsetDialog(BufferView *) const { return false; }