From 6a5312882228eab4cc19992d1255f53448e597c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 13 Dec 2001 13:40:08 +0000 Subject: [PATCH] enter gridded insets a bit higher git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3202 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_gridinset.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2