[Libreoffice-commits] core.git: sc/source

Eike Rathke erack at redhat.com
Fri Jul 29 13:20:26 UTC 2016


 sc/source/ui/view/cellsh.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 77327759c9053da493430ee01b4d7fe98c174574
Author: Eike Rathke <erack at 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:


More information about the Libreoffice-commits mailing list