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;