From: André Pönitz Date: Thu, 13 Dec 2001 13:40:08 +0000 (+0000) Subject: enter gridded insets a bit higher X-Git-Tag: 1.6.10~20176 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6a5312882228eab4cc19992d1255f53448e597c1;p=features.git enter gridded insets a bit higher git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3202 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/math_gridinset.C b/src/mathed/math_gridinset.C index 5ff51e3fd9..f0fe00e430 100644 --- a/src/mathed/math_gridinset.C +++ b/src/mathed/math_gridinset.C @@ -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;