mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
enter gridded insets a bit higher
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3202 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
af71097957
commit
6a53128822
@ -537,7 +537,7 @@ bool MathGridInset::idxFirst(idx_type & idx, pos_type & pos) const
|
||||
idx = (nrows() - 1) * ncols();
|
||||
break;
|
||||
default:
|
||||
idx = (nrows() / 2) * ncols();
|
||||
idx = ((nrows() - 1) / 2) * ncols();
|
||||
}
|
||||
pos = 0;
|
||||
return true;
|
||||
@ -554,7 +554,7 @@ bool MathGridInset::idxLast(idx_type & idx, pos_type & pos) const
|
||||
idx = nargs() - 1;
|
||||
break;
|
||||
default:
|
||||
idx = (nrows() / 2 + 1) * ncols() - 1;
|
||||
idx = ((nrows() - 1) / 2 + 1) * ncols() - 1;
|
||||
}
|
||||
pos = cell(idx).size();
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user