calling InsetText::drawSelection instead of Text:drawSelection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18881
a592a061-630c-0410-9148-
cb99ea01b6c8
}
} else {
- cur.text()->drawSelection(pi, x + getCellXPos(cur.idx()) + tabular.getBeginningOfTextInCell(cur.idx()), 0 /*this value is ignored */);
+ x += getCellXPos(cur.idx());
+ x += tabular.getBeginningOfTextInCell(cur.idx());
+ cell(cur.idx())->drawSelection(pi, x, 0 /* ignored */);
}
}
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;
}