summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2018-04-15 13:15:28 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2018-04-17 11:52:33 +0200
commit3732d5ab1782bbadfee457115fbd8dce78453cc2 (patch)
tree8030343a0514a9bb6c60cee20d67ed6097a972d3
parentc8780642a5e8dc0bdcc97940ee7d9cacdc64c928 (diff)
tdf#116821 Keep row/column buttons enabled even when insert impossible
So other commands included in these buttons (like delete or set height/ width), could still be used. Change-Id: If9e96116aebf73b2d20fb8d63ee67da3d17e3d9f Reviewed-on: https://gerrit.libreoffice.org/52909 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
-rw-r--r--sc/source/ui/view/cellsh.cxx2
-rw-r--r--sc/source/ui/view/tabview3.cxx2
2 files changed, 0 insertions, 4 deletions
diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx
index beca02abd382..cb2d374bdb6e 100644
--- a/sc/source/ui/view/cellsh.cxx
+++ b/sc/source/ui/view/cellsh.cxx
@@ -245,7 +245,6 @@ void ScCellShell::GetBlockState( SfxItemSet& rSet )
break;
}
case FID_INS_CELLSDOWN:
- case SID_ROW_OPERATIONS:
bDisable = (!bSimpleArea) || GetViewData()->SimpleColMarked();
break;
@@ -266,7 +265,6 @@ void ScCellShell::GetBlockState( SfxItemSet& rSet )
break;
}
case FID_INS_CELLSRIGHT:
- case SID_COLUMN_OPERATIONS:
bDisable = (!bSimpleArea) || GetViewData()->SimpleRowMarked();
break;
diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx
index 41bd76e976ad..4621d6ce120a 100644
--- a/sc/source/ui/view/tabview3.cxx
+++ b/sc/source/ui/view/tabview3.cxx
@@ -536,8 +536,6 @@ void ScTabView::SelectionChanged()
rBindings.Invalidate( FID_INS_CELL );
rBindings.Invalidate( FID_INS_CELLSDOWN );
rBindings.Invalidate( FID_INS_CELLSRIGHT );
- rBindings.Invalidate( SID_ROW_OPERATIONS );
- rBindings.Invalidate( SID_COLUMN_OPERATIONS );
rBindings.Invalidate( FID_CHG_COMMENT );