mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Fix bug #8083: Fix the selection of cells below multirows
Multirows were introduced in 8bb69f24
(Uwe Stoehr, 11 Feb 2010). In the
computation of the nearest cell, it was forgotten to account for the
vertical offset. tabular.cellHeight is the full height of the cell, while
the point that comes from the coordCache is offsetted by VOffset.
Therefore, we have to subtract the VOffset from o.y_.
This commit is contained in:
parent
022677fcc4
commit
96e854ab76
@ -4893,7 +4893,7 @@ int InsetTabular::dist(BufferView & bv, idx_type const cell, int x, int y) const
|
||||
int const xend = xbeg + tabular.cellWidth(cell);
|
||||
row_type const row = tabular.cellRow(cell);
|
||||
int const ybeg = o.y_ - tabular.rowAscent(row)
|
||||
- tabular.interRowSpace(row);
|
||||
- tabular.interRowSpace(row) - tabular.textVOffset(cell);
|
||||
int const yend = ybeg + tabular.cellHeight(cell);
|
||||
|
||||
if (x < xbeg)
|
||||
|
Loading…
Reference in New Issue
Block a user