sc/source/ui/view/cellsh.cxx | 2 ++ 1 file changed, 2 insertions(+) New commits: commit 77327759c9053da493430ee01b4d7fe98c174574 Author: Eike Rathke <er...@redhat.com> Date: Fri Jul 29 15:19:31 2016 +0200
disallow Random Number when entire sheet is selected, tdf#60056 related Change-Id: Ie9e229c3d3e5a5a7e3f3e90ebd181471927bd452 diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx index 8b0a138..c3b69da 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: _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits