From ee8338a112f20ec12f40727a40b2339470a31772 Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Mon, 21 Mar 2005 10:17:21 +0000 Subject: [PATCH] cosmetic bugfix in selection of tables git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9727 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 5 +++++ src/insets/insettabular.C | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 289b7a6e30..568bc78994 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ + +2005-03-21 Alfredo Braunstein + + * insettabular.C (drawSelection): cosmetic bugfix + 2005-03-17 Jürgen Spitzmüller * insettabular.C (doDispatch): get middle mouse button back again diff --git a/src/insets/insettabular.C b/src/insets/insettabular.C index 029f0823e5..9b929b4c11 100644 --- a/src/insets/insettabular.C +++ b/src/insets/insettabular.C @@ -331,6 +331,7 @@ void InsetTabular::drawSelection(PainterInfo & pi, int x, int y) const row_type rs, re; col_type cs, ce; getSelection(cur, rs, re, cs, ce); + y -= tabular.getAscentOfRow(0); for (row_type j = 0; j < tabular.rows(); ++j) { int const a = tabular.getAscentOfRow(j); int const h = a + tabular.getDescentOfRow(j); @@ -343,7 +344,7 @@ void InsetTabular::drawSelection(PainterInfo & pi, int x, int y) const tabular.getCellNumber(j, i); int const w = tabular.getWidthOfColumn(cell); if (i >= cs && i <= ce && j >= rs && j <= re) - pi.pain.fillRectangle(xx, y - a, w, h, + pi.pain.fillRectangle(xx, y, w, h, LColor::selection); xx += w;