xmloff/source/draw/ximpshap.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 558b5a1183e840007e554a05082ade0b8e3e3f92
Author:     Bogdan Buzea <buzea.bog...@libreoffice.org>
AuthorDate: Sun Oct 20 21:11:50 2024 +0200
Commit:     David Gilbert <freedesk...@treblig.org>
CommitDate: Wed Oct 30 01:36:46 2024 +0100

    tdf#163486: PVS: Identical branches
    
    V1037 Two or more case-branches perform the same actions. Check lines: 836, 
890
    
    Change-Id: If6036da666ea46a4e5c2bc0f4547c78aa43a26a9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175270
    Tested-by: Jenkins
    Reviewed-by: David Gilbert <freedesk...@treblig.org>

diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx
index 5e4354a5c7ec..79117cc9fe8f 100644
--- a/xmloff/source/draw/ximpshap.cxx
+++ b/xmloff/source/draw/ximpshap.cxx
@@ -831,10 +831,6 @@ bool SdXMLShapeContext::processAttribute( const 
sax_fastparser::FastAttributeLis
         case XML_ELEMENT(DRAW_EXT, XML_LAYER):
             maLayerName = aIter.toString();
             break;
-        case XML_ELEMENT(DRAW, XML_TRANSFORM):
-        case XML_ELEMENT(DRAW_EXT, XML_TRANSFORM):
-            mnTransform.SetString(aIter.toString(), 
GetImport().GetMM100UnitConverter());
-            break;
         case XML_ELEMENT(DRAW, XML_DISPLAY):
         case XML_ELEMENT(DRAW_EXT, XML_DISPLAY):
             mbVisible = IsXMLToken( aIter, XML_ALWAYS ) || IsXMLToken( aIter, 
XML_SCREEN );
@@ -883,6 +879,8 @@ bool SdXMLShapeContext::processAttribute( const 
sax_fastparser::FastAttributeLis
             else if (maSize.Height < 0)
                 maSize.Height = o3tl::saturating_add<sal_Int32>(maSize.Height, 
-1);
             break;
+        case XML_ELEMENT(DRAW, XML_TRANSFORM):
+        case XML_ELEMENT(DRAW_EXT, XML_TRANSFORM):
         case XML_ELEMENT(SVG, XML_TRANSFORM):
         case XML_ELEMENT(SVG_COMPAT, XML_TRANSFORM):
             // because of #85127# take svg:transform into account and handle 
like

Reply via email to