mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
* make DocIterator::find(Inset(Math) * inset) do what it is supposed to do according to the documentation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23259 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
eb86fb460e
commit
5622f4b560
@ -493,10 +493,10 @@ int DocIterator::find(MathData const & cell) const
|
||||
}
|
||||
|
||||
|
||||
int DocIterator::find(InsetMath const * inset) const
|
||||
int DocIterator::find(Inset const * inset) const
|
||||
{
|
||||
for (size_t l = 0; l != slices_.size(); ++l) {
|
||||
if (slices_[l].asInsetMath() == inset)
|
||||
if (&slices_[l].inset() == inset)
|
||||
return l;
|
||||
}
|
||||
return -1;
|
||||
|
@ -214,7 +214,7 @@ public:
|
||||
/// find index of CursorSlice with &cell() == &cell (or -1 if not found)
|
||||
int find(MathData const & cell) const;
|
||||
/// find index of CursorSlice with inset() == inset (or -1 of not found)
|
||||
int find(InsetMath const * inset) const;
|
||||
int find(Inset const * inset) const;
|
||||
/// cut off CursorSlices with index > above and store cut off slices in cut.
|
||||
void cutOff(int above, std::vector<CursorSlice> & cut);
|
||||
/// cut off CursorSlices with index > above
|
||||
|
Loading…
Reference in New Issue
Block a user