mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
* 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:
parent
2b9153b8bc
commit
b79bd1fa65
@ -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)
|
||||
|
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user