From b387ed52b121c2658abe505ae54965a884f36e88 Mon Sep 17 00:00:00 2001 From: Daniel Ramoeller Date: Sun, 3 Oct 2021 06:22:48 +0200 Subject: [PATCH] Disable LFUN for last column/row deletion Fix for #12380. --- src/insets/InsetTabular.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 765388a959..6d5cc2edaa 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -5556,6 +5556,10 @@ bool InsetTabular::getFeatureStatus(Cursor & cur, string const & s, case Tabular::SET_BOTTOM_SPACE: case Tabular::SET_INTERLINE_SPACE: status.clear(); + if (action == Tabular::DELETE_ROW) + status.setEnabled(tabular.nrows() > 1); + else if (action == Tabular::DELETE_COLUMN) + status.setEnabled(tabular.ncols() > 1); return true; case Tabular::SET_TABULAR_WIDTH: -- 2.39.5