sc/source/ui/view/tabvwshb.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 9bcd990d5a287dbde14ccc77f214c8e469888140
Author:     Bogdan Buzea <buzea.bog...@libreoffice.org>
AuthorDate: Mon Oct 21 17:14:23 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Tue Oct 22 12:09:48 2024 +0200

    tdf#163486: PVS: Identical branches
    
    V1037 Two or more case-branches perform the same actions. Check lines: 628, 
638
    
    Change-Id: I0979a4c245c2b550ab85072f3925082845f0915a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175352
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sc/source/ui/view/tabvwshb.cxx b/sc/source/ui/view/tabvwshb.cxx
index 0a174df6d84b..a2b5fb9e8873 100644
--- a/sc/source/ui/view/tabvwshb.cxx
+++ b/sc/source/ui/view/tabvwshb.cxx
@@ -625,6 +625,7 @@ void ScTabViewShell::GetDrawInsState(SfxItemSet &rSet)
                 break;
 
             case SID_INSERT_SIGNATURELINE:
+            case SID_INSERT_QRCODE:
                 if ( bTabProt || bShared || (pSdrView && 
pSdrView->GetMarkedObjectList().GetMarkCount() != 0))
                     rSet.DisableItem( nWhich );
                 break;
@@ -634,10 +635,6 @@ void ScTabViewShell::GetDrawInsState(SfxItemSet &rSet)
                     rSet.DisableItem(nWhich);
                 break;
 
-            case SID_INSERT_QRCODE:
-                if ( bTabProt || bShared || (pSdrView && 
pSdrView->GetMarkedObjectList().GetMarkCount() != 0))
-                    rSet.DisableItem( nWhich );
-                break;
             case SID_EDIT_QRCODE:
                 if (!IsQRCodeSelected())
                     rSet.DisableItem(nWhich);

Reply via email to