diff options
author | Eike Rathke <erack@redhat.com> | 2016-07-29 15:19:31 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-07-29 15:19:44 +0200 |
commit | 77327759c9053da493430ee01b4d7fe98c174574 (patch) | |
tree | 79da3e78b5a84b1690cd44e53bce6ba50dd6ba2c | |
parent | c729ee7622b1d54b2dc82b1807c68899efeab6d7 (diff) |
disallow Random Number when entire sheet is selected, tdf#60056 related
Change-Id: Ie9e229c3d3e5a5a7e3f3e90ebd181471927bd452
-rw-r--r-- | sc/source/ui/view/cellsh.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx index 8b0a1382ce3c..c3b69dad2d60 100644 --- a/sc/source/ui/view/cellsh.cxx +++ b/sc/source/ui/view/cellsh.cxx @@ -176,6 +176,8 @@ void ScCellShell::GetBlockState( SfxItemSet& rSet ) break; case SID_RANDOM_NUMBER_GENERATOR_DIALOG: + bDisable = !bSimpleArea || GetViewData()->SelectionForbidsPaste(); + break; case SID_SAMPLING_DIALOG: case SID_DESCRIPTIVE_STATISTICS_DIALOG: case SID_ANALYSIS_OF_VARIANCE_DIALOG: |