| commit | a3ea83896f2d3aefa8cd67b3aa54884450999481 | [log] |
|---|---|---|
| author | Maxim Monastirsky <momonasmon@gmail.com> | Sun Apr 15 13:15:28 2018 +0300 |
| committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | Tue Apr 24 03:56:10 2018 +0200 |
| tree | c25318b8162b739cb9c9340f609f579eae22cf84 | |
| parent | 28f2941680f850e88228e45699ac612ce036cf16 [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> (cherry picked from commit 3732d5ab1782bbadfee457115fbd8dce78453cc2) Reviewed-on: https://gerrit.libreoffice.org/53286 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx index 8167be1..acbb576 100644 --- a/sc/source/ui/view/cellsh.cxx +++ b/sc/source/ui/view/cellsh.cxx
@@ -246,7 +246,6 @@ void ScCellShell::GetBlockState( SfxItemSet& rSet ) break; } case FID_INS_CELLSDOWN: case SID_ROW_OPERATIONS: bDisable = (!bSimpleArea) || GetViewData()->SimpleColMarked(); break; @@ -267,7 +266,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 69bc803..6e93f5f 100644 --- a/sc/source/ui/view/tabview3.cxx +++ b/sc/source/ui/view/tabview3.cxx
@@ -535,8 +535,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 );