mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
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:
parent
293b9f37d7
commit
ee8338a112
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user