From e32c8c5bada95af9d12f3431165ec794e306791b Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Sat, 22 Dec 2007 14:38:43 +0000 Subject: [PATCH] * Inset::editing should be const git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22258 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/Inset.cpp | 2 +- src/insets/Inset.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }