From 64671aa6c702d41724248a5226801ef55578109c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Mon, 13 Mar 2006 10:48:35 +0000 Subject: [PATCH] insettabular.C (dist): fix miscalculation of rowheight (bug 2006) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13352 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 4 ++++ src/insets/insettabular.C | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 6c79f3a4d6..9db27cbf09 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-02-25 Martin Vermeer 2006-02-25 Georg Baum 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)