mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
fix out-of-bounds bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2864 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
cdc0cab2bc
commit
739f74c54a
@ -25,20 +25,22 @@ bool MathFracbaseInset::idxLeft(MathInset::idx_type &,
|
||||
|
||||
|
||||
bool MathFracbaseInset::idxUp(MathInset::idx_type & idx,
|
||||
MathInset::pos_type &) const
|
||||
MathInset::pos_type & pos) const
|
||||
{
|
||||
if (idx == 0)
|
||||
return false;
|
||||
idx = 0;
|
||||
pos = std::min(pos, cell(idx).size());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool MathFracbaseInset::idxDown(MathInset::idx_type & idx,
|
||||
MathInset::pos_type &) const
|
||||
MathInset::pos_type & pos) const
|
||||
{
|
||||
if (idx == 1)
|
||||
return false;
|
||||
idx = 1;
|
||||
pos = std::min(pos, cell(idx).size());
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user