]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetTabular.cpp
Fix bug #8083: Fix the selection of cells below multirows
[features.git] / src / insets / InsetTabular.cpp
index 272dae4de8afabc26531499e1f4acf1b0dde6032..57bca38693137d48e3a4e1580f2357bd4b6811ba 100644 (file)
@@ -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)