Disable LFUN for last column/row deletion

Fix for #12380.
This commit is contained in:
Daniel Ramoeller 2021-10-03 06:22:48 +02:00 committed by Scott Kostyshak
parent 465b58a6df
commit b387ed52b1

View File

@ -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: