]> git.lyx.org Git - features.git/commitdiff
enter gridded insets a bit higher
authorAndré Pönitz <poenitz@gmx.net>
Thu, 13 Dec 2001 13:40:08 +0000 (13:40 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 13 Dec 2001 13:40:08 +0000 (13:40 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3202 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_gridinset.C

index 5ff51e3fd94a25f0347c36f7342af14b1b054cd7..f0fe00e430bc7e8973afc7e418fe89344b0f183f 100644 (file)
@@ -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;