From: Daniel Ramoeller Date: Sun, 3 Oct 2021 04:22:48 +0000 (+0200) Subject: Disable LFUN for last column/row deletion X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b387ed52b121c2658abe505ae54965a884f36e88;p=features.git Disable LFUN for last column/row deletion Fix for #12380. --- 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: