* make isInside const

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22257 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2007-12-22 14:38:20 +00:00
parent 2b9153b8bc
commit b79bd1fa65
2 changed files with 2 additions and 2 deletions

View File

@ -645,7 +645,7 @@ namespace lyx {
//#define FILEDEBUG 1
bool Cursor::isInside(Inset const * p)
bool Cursor::isInside(Inset const * p) const
{
for (size_t i = 0; i != depth(); ++i)
if (&operator[](i).inset() == p)

View File

@ -330,7 +330,7 @@ public:
// selection in given cell of atom
void handleNest(MathAtom const & at, int cell = 0);
///
bool isInside(Inset const *);
bool isInside(Inset const *) const;
/// make sure cursor position is valid
/// FIXME: It does a subset of fixIfBroken. Maybe merge them?