Comment out code that does nothing. InsetTableCell does not handle drawSelection. Now it raises the impression that this causes the selection of the cells to be painted but that is done somewhere else.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36483 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-11-25 13:02:30 +00:00
parent 8279da6e20
commit 340b1b0473

View File

@ -3602,11 +3602,14 @@ void InsetTabular::drawSelection(PainterInfo & pi, int x, int y) const
+ tabular.interRowSpace(r + 1);
}
} else {
x += cellXPos(cur.idx());
x += tabular.textHOffset(cur.idx());
cell(cur.idx())->drawSelection(pi, x, 0 /* ignored */);
}
}
// FIXME: This code has no effect because InsetTableCell does not handle
// drawSelection other than the trivial implementation in Inset.
//else {
// x += cellXPos(cur.idx());
// x += tabular.textHOffset(cur.idx());
// cell(cur.idx())->drawSelection(pi, x, 0 /* ignored */);
//}
}