[Libreoffice-commits] core.git: svx/source

Dr. David Alan Gilbert (via logerrit) logerrit at kemper.freedesktop.org
Sun Jan 24 16:22:25 UTC 2021


 svx/source/svdraw/svdmrkv.cxx |    4 ----
 1 file changed, 4 deletions(-)

New commits:
commit 2149960b862b83ff7678ce3cba37c226269edbd9
Author:     Dr. David Alan Gilbert <dave at treblig.org>
AuthorDate: Sun Jan 24 03:05:43 2021 +0000
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sun Jan 24 17:21:47 2021 +0100

    SdrMarkView::SetMarkHandles  Merge identical if's
    
    Two neighbouring if's spotted by cppcheck with identical conditions;
    squash.
    
    Change-Id: I0b8822991564b994a9c908b28dcf3f2636bb68be
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109852
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index dcb8c6037f1b..446020ef48d5 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -1092,10 +1092,6 @@ void SdrMarkView::SetMarkHandles(SfxViewShell* pOtherShell)
                     if (!bLimitedRotation && !bWdt0)
                     {
                         maHdlList.AddHdl(std::make_unique<SdrHdl>(aRect.LeftCenter(), SdrHdlKind::Left ));
-                    }
-
-                    if (!bLimitedRotation && !bWdt0)
-                    {
                         maHdlList.AddHdl(std::make_unique<SdrHdl>(aRect.RightCenter(), SdrHdlKind::Right));
                     }
 


More information about the Libreoffice-commits mailing list