]> git.lyx.org Git - features.git/commitdiff
fix coordinate miscalculation in tabular (bug 2006)
authorJürgen Spitzmüller <spitz@lyx.org>
Sat, 11 Mar 2006 16:09:41 +0000 (16:09 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sat, 11 Mar 2006 16:09:41 +0000 (16:09 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13340 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insettabular.C

index 7bf7d9691309fa56287a05eabdfa9471221f3397..7477138e45eeb25c7bae8169be65c4e6f411b590 100644 (file)
@@ -1,3 +1,7 @@
+2006-03-11  Jürgen Spitzmüller  <j.spitzmueller@gmx.de>
+
+       * insettabular.C (dist): fix miscalculation of rowheight (bug 2006)
+
 2005-03-10  Martin Vermeer  <martin.vermeer@hut.fi>
 
        * insetcollapsable.C:
index c211ed81abe9a3855af4b5238be32873c5453b23..82f97175731a224992abdad7928f0dbe8cd9a03d 100644 (file)
@@ -1162,8 +1162,7 @@ int InsetTabular::dist(idx_type const cell, int x, int y) const
        int const ybeg = o.y_ - inset.ascent();
        row_type const row = tabular.row_of_cell(cell);
        int const rowheight = tabular.getAscentOfRow(row)
-                       + tabular.getDescentOfRow(row)
-                       + tabular.getAdditionalHeight(row);
+                       + tabular.getDescentOfRow(row);
        int const yend = ybeg + rowheight;
 
        if (x < xbeg)