cosmetic bugfix in selection of tables

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9727 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Alfredo Braunstein 2005-03-21 10:17:21 +00:00
parent 293b9f37d7
commit ee8338a112
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-03-21 Alfredo Braunstein <abraunst@lyx.org>
* insettabular.C (drawSelection): cosmetic bugfix
2005-03-17 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* insettabular.C (doDispatch): get middle mouse button back again

View File

@ -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;