From 2149960b862b83ff7678ce3cba37c226269edbd9 Mon Sep 17 00:00:00 2001 From: "Dr. David Alan Gilbert" Date: Sun, 24 Jan 2021 03:05:43 +0000 Subject: 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 --- svx/source/svdraw/svdmrkv.cxx | 4 ---- 1 file changed, 4 deletions(-) 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(aRect.LeftCenter(), SdrHdlKind::Left )); - } - - if (!bLimitedRotation && !bWdt0) - { maHdlList.AddHdl(std::make_unique(aRect.RightCenter(), SdrHdlKind::Right)); } -- cgit