From: Jürgen Spitzmüller Date: Sat, 11 Mar 2006 16:09:41 +0000 (+0000) Subject: fix coordinate miscalculation in tabular (bug 2006) X-Git-Tag: 1.6.10~13527 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b5ce2106979b5f0b49105ecbbbdb7d7f48fd279c;p=lyx.git fix coordinate miscalculation in tabular (bug 2006) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13340 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 7bf7d96913..7477138e45 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,7 @@ +2006-03-11 Jürgen Spitzmüller + + * insettabular.C (dist): fix miscalculation of rowheight (bug 2006) + 2005-03-10 Martin Vermeer * insetcollapsable.C: diff --git a/src/insets/insettabular.C b/src/insets/insettabular.C index c211ed81ab..82f9717573 100644 --- a/src/insets/insettabular.C +++ b/src/insets/insettabular.C @@ -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)