From 340b1b0473dfb8c6a069020044adef6b983ddb63 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Thu, 25 Nov 2010 13:02:30 +0000 Subject: [PATCH] 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 --- src/insets/InsetTabular.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 51d21f16c7..1cd6e7496d 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -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 */); + //} }