sfx2/source/doc/objserv.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
New commits: commit 92bc85c42211fcfc6d2bfdeeaa1eb2d5c40ab6e1 Author: Bogdan Buzea <buzea.bog...@libreoffice.org> AuthorDate: Sun Oct 20 21:26:54 2024 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Tue Oct 22 11:57:36 2024 +0200 tdf#163486: PVS: Identical branches V1037 Two or more case-branches perform the same actions. Check lines: 1413, 1553 Change-Id: I6b28e9d7055bdf120759dff38d869d1cb1e70cc1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175271 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> Tested-by: Jenkins diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index 2de634bc452c..ff628d18059a 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -1430,13 +1430,6 @@ void SfxObjectShell::GetState_Impl(SfxItemSet &rSet) { switch ( nWhich ) { - case SID_DOCTEMPLATE : - { - if ( isExportLocked()) - rSet.DisableItem( nWhich ); - break; - } - case SID_CHECKOUT: { bool bShow = false; @@ -1563,6 +1556,7 @@ void SfxObjectShell::GetState_Impl(SfxItemSet &rSet) break; } + case SID_DOCTEMPLATE: case SID_EXPORTDOC: case SID_EXPORTDOCASPDF: case SID_DIRECTEXPORTDOCASPDF: