sc/sdi/cellsh.sdi | 2 +- sc/source/ui/view/cellsh.cxx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
New commits: commit 0d3bb65620de64709d45c6e9b5591381a7da8dcf Author: Oliver Specht <[email protected]> AuthorDate: Wed May 22 16:30:21 2024 +0200 Commit: Balazs Varga <[email protected]> CommitDate: Fri May 31 08:10:34 2024 +0200 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 <[email protected]> Tested-by: Jenkins Tested-by: Gabor Kelemen <[email protected]> diff --git a/sc/sdi/cellsh.sdi b/sc/sdi/cellsh.sdi index 7370d142607e..ebba146f998d 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 f1a1f97ef4d6..d907daf51ac2 100644 --- a/sc/source/ui/view/cellsh.cxx +++ b/sc/source/ui/view/cellsh.cxx @@ -315,6 +315,7 @@ void ScCellShell::GetBlockState( SfxItemSet& rSet ) bNeedEdit = false; break; + case FID_CURRENTVALIDATION: case FID_VALIDATION: { if ( pDocShell && pDocShell->IsDocShared() )
