summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Specht <oliver.specht@cib.de>2024-05-22 16:30:21 +0200
committerThorsten Behrens <thorsten.behrens@allotropia.de>2024-06-18 12:53:03 +0200
commit04928d62b0dbdf6debbb92722264651182aba167 (patch)
tree420113b0e4ffe515f6030b51aaec56e8fba0866d
parent072ee1a4573b6ab867a35114070650aec8faf9fd (diff)
tdf#159695 Disable Data Validation in protected sheets
While the menu entry Data/Validity was disabled the context menu entry Data Validation was still enabled. This is fixed now. Change-Id: Ifa183f79ed85e5c46e73b4fa3e282c48e9de6c89 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167964 Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de> Tested-by: Jenkins Tested-by: Gabor Kelemen <gabor.kelemen.extern@allotropia.de>
-rw-r--r--sc/sdi/cellsh.sdi2
-rw-r--r--sc/source/ui/view/cellsh.cxx1
2 files changed, 2 insertions, 1 deletions
diff --git a/sc/sdi/cellsh.sdi b/sc/sdi/cellsh.sdi
index 84217c63c949..a66b8b965c26 100644
--- a/sc/sdi/cellsh.sdi
+++ b/sc/sdi/cellsh.sdi
@@ -61,7 +61,7 @@ interface CellSelection
SID_SUBTOTALS [ ExecMethod = ExecuteDB; StateMethod = GetDBState; ]
SID_PIVOT_TABLE [ ExecMethod = ExecuteDB; StateMethod = GetDBState; ]
FID_VALIDATION [ ExecMethod = ExecuteDB; StateMethod = GetBlockState; ]
- FID_CURRENTVALIDATION [ ExecMethod = ExecuteDB; StateMethod = GetState; ]
+ FID_CURRENTVALIDATION [ ExecMethod = ExecuteDB; StateMethod = GetBlockState; ]
SID_TEXT_TO_COLUMNS [ ExecMethod = ExecuteDB; StateMethod = GetDBState; ]
// } database operations
diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx
index 1a866df3c881..daf68eba0b1d 100644
--- a/sc/source/ui/view/cellsh.cxx
+++ b/sc/source/ui/view/cellsh.cxx
@@ -317,6 +317,7 @@ void ScCellShell::GetBlockState( SfxItemSet& rSet )
bNeedEdit = false;
break;
+ case FID_CURRENTVALIDATION:
case FID_VALIDATION:
{
if ( pDocShell && pDocShell->IsDocShared() )