mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-26 18:07:18 +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
b754fb0253
commit
cddd90dfdf
@ -4902,7 +4902,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)
|
||||
|
@ -101,6 +101,8 @@ What's new
|
||||
|
||||
- Do not repeatedly show export errors of a previous export.
|
||||
|
||||
- Fix the selection of rows below a multirow (bug 8083).
|
||||
|
||||
|
||||
* DOCUMENTATION AND LOCALIZATION
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user