mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Replace outdated LASSERT
The concept of rows and cols is no longer unique to mathed. Each inset decides itself whether it is grid like or not, so we should not interfere with this in the cursor slice.
This commit is contained in:
parent
7416064033
commit
c54b136880
@ -80,19 +80,15 @@ pit_type CursorSlice::lastpit() const
|
||||
|
||||
CursorSlice::row_type CursorSlice::row() const
|
||||
{
|
||||
// LASSERT: This should only ever be called from an InsetMath.
|
||||
// Should we crash in release mode, though, or try to continue?
|
||||
LASSERT(asInsetMath(), /**/);
|
||||
return asInsetMath()->row(idx_);
|
||||
LASSERT(inset_, return 0);
|
||||
return inset_->row(idx_);
|
||||
}
|
||||
|
||||
|
||||
CursorSlice::col_type CursorSlice::col() const
|
||||
{
|
||||
// LASSERT: This should only ever be called from an InsetMath.
|
||||
// Should we crash in release mode, though, or try to continue?
|
||||
LASSERT(asInsetMath(), /**/);
|
||||
return asInsetMath()->col(idx_);
|
||||
LASSERT(inset_, return 0);
|
||||
return inset_->col(idx_);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user