From cddd90dfdffe1a717a6844df551618fe49103c58 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sun, 18 Mar 2012 00:05:15 +0100 Subject: [PATCH] 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_. --- src/insets/InsetTabular.cpp | 2 +- status.20x | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 1569999c4c..508ad732de 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -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) diff --git a/status.20x b/status.20x index 72a00437f6..943d02a231 100644 --- a/status.20x +++ b/status.20x @@ -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 -- 2.39.5