diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 7583cabb38..2d0d4d0730 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -3104,8 +3104,10 @@ void InsetTabular::drawSelection(PainterInfo & pi, int x, int y) const //resetPos(cur); + bool const full_cell_selected = isCellSelected(cur, + tabular.cellRow(cur.idx()), tabular.cellColumn(cur.idx())); - if (cur.selIsMultiCell()) { + if (cur.selIsMultiCell() || full_cell_selected) { y -= tabular.rowAscent(0); for (row_type j = 0; j < tabular.row_info.size(); ++j) { int const a = tabular.rowAscent(j); @@ -3119,8 +3121,7 @@ void InsetTabular::drawSelection(PainterInfo & pi, int x, int y) const tabular.cellIndex(j, i); int const w = tabular.columnWidth(cell); if (isCellSelected(cur, j, i)) - pi.pain.fillRectangle(xx, y, w, h, - Color_selection); + pi.pain.fillRectangle(xx, y, w, h, Color_selection); xx += w; } y += h;