Edwin Leuven wrote: > is a couple of pixels off. > > see attached...
I'm specializing in one-liners lately ;-) OK? A/
Index: src/insets/InsetTabular.cpp =================================================================== --- src/insets/InsetTabular.cpp (revision 18873) +++ src/insets/InsetTabular.cpp (working copy) @@ -3096,7 +3096,7 @@ } } else { - cur.text()->drawSelection(pi, x + getCellXPos(cur.idx()) + tabular.getBeginningOfTextInCell(cur.idx()), 0 /*this value is ignored */); + cell(cur.idx())->drawSelection(pi, x + getCellXPos(cur.idx()) + tabular.getBeginningOfTextInCell(cur.idx()), 0 /*this value is ignored */); } } @@ -3969,11 +3969,11 @@ for (; !tabular.isFirstCellInRow(c); --c) ; - int lx = tabular.getWidthOfColumn(cell); + int lx = 0; for (; c < cell; ++c) lx += tabular.getWidthOfColumn(c); - return lx - tabular.getWidthOfColumn(cell); + return lx; }