svx/source/unodraw/unopage.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit c0dc8022f2d4adbc1f47a6f74e3ac69587f8ab24
Author:     Bogdan Buzea <buzea.bog...@libreoffice.org>
AuthorDate: Mon Oct 21 17:03:58 2024 +0200
Commit:     David Gilbert <freedesk...@treblig.org>
CommitDate: Sun Oct 27 01:13:55 2024 +0200

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

diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx
index dea32b511d39..e516e990cf80 100644
--- a/svx/source/unodraw/unopage.cxx
+++ b/svx/source/unodraw/unopage.cxx
@@ -640,6 +640,7 @@ rtl::Reference<SvxShape> 
SvxDrawPage::CreateShapeByTypeAndInventor( SdrObjKind n
                     pRet = new SvxShapePolyPolygon( pObj );
                     break;
                 case SdrObjKind::Rectangle:
+                case SdrObjKind::Annotation:
                     pRet = new SvxShapeRect( pObj );
                     break;
                 case SdrObjKind::CircleOrEllipse:
@@ -766,9 +767,6 @@ rtl::Reference<SvxShape> 
SvxDrawPage::CreateShapeByTypeAndInventor( SdrObjKind n
                 case SdrObjKind::Table:
                     pRet = new SvxTableShape( pObj );
                     break;
-                case SdrObjKind::Annotation:
-                    pRet = new SvxShapeRect( pObj );
-                    break;
                 default: // unknown 2D-object on page
                     assert(false && "Not implemented Starone-Shape created");
                     pRet = new SvxShapeText( pObj );

Reply via email to