commit b387ed52b121c2658abe505ae54965a884f36e88
Author: Daniel Ramoeller <[email protected]>
Date:   Sun Oct 3 06:22:48 2021 +0200

    Disable LFUN for last column/row deletion
    
    Fix for #12380.
---
 src/insets/InsetTabular.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 765388a..6d5cc2e 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:
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to