vcl/source/outdev/transparent.cxx |   13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
New commits:
commit ca48b37054d68429e323235ff8dda86e85d02aa5
Author:     Bogdan Buzea <buzea.bog...@libreoffice.org>
AuthorDate: Sun Oct 20 08:09:04 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Sun Oct 20 10:30:22 2024 +0200

    tdf#163486: PVS: Identical branches
    
    V1037 Two or more case-branches perform the same actions. Check lines: 856, 
860
    V1037 Two or more case-branches perform the same actions. Check lines: 918, 
923, 958
    
    Change-Id: I2ef4a1cbcbbc54496b896153f08ebd0049c4dfc8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175232
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/vcl/source/outdev/transparent.cxx 
b/vcl/source/outdev/transparent.cxx
index 1c8b116408b5..c98f84823c67 100644
--- a/vcl/source/outdev/transparent.cxx
+++ b/vcl/source/outdev/transparent.cxx
@@ -853,9 +853,6 @@ void ImplConvertTransparentAction( GDIMetaFile&        
o_rMtf,
                 break;
 
             case MetaActionType::BMPEXSCALE:
-                aBmpEx = static_cast<const 
MetaBmpExScaleAction&>(rAct).GetBitmapEx();
-                break;
-
             case MetaActionType::BMPEXSCALEPART:
                 aBmpEx = static_cast<const 
MetaBmpExScaleAction&>(rAct).GetBitmapEx();
                 break;
@@ -915,11 +912,8 @@ bool ImplIsNotTransparent( const MetaAction& rAct, const 
OutputDevice& rOut )
     switch( rAct.GetType() )
     {
         case MetaActionType::POINT:
-            if( !bLineTransparency )
-                bRet = true;
-            break;
-
         case MetaActionType::LINE:
+        case MetaActionType::POLYLINE:
             if( !bLineTransparency )
                 bRet = true;
             break;
@@ -954,11 +948,6 @@ bool ImplIsNotTransparent( const MetaAction& rAct, const 
OutputDevice& rOut )
                 bRet = true;
             break;
 
-        case MetaActionType::POLYLINE:
-            if( !bLineTransparency )
-                bRet = true;
-            break;
-
         case MetaActionType::POLYGON:
             if( !bLineTransparency || !bFillTransparency )
                 bRet = true;

Reply via email to