summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dave@treblig.org>2021-01-24 03:05:43 +0000
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-01-24 17:21:47 +0100
commit2149960b862b83ff7678ce3cba37c226269edbd9 (patch)
tree01478f8f02239b695cab52003afe156c4303bb09
parent22070dfc6b9645346de46d90858b6a6b17d8259f (diff)
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@collabora.co.uk>
-rw-r--r--svx/source/svdraw/svdmrkv.cxx4
1 files changed, 0 insertions, 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<SdrHdl>(aRect.LeftCenter(), SdrHdlKind::Left ));
- }
-
- if (!bLimitedRotation && !bWdt0)
- {
maHdlList.AddHdl(std::make_unique<SdrHdl>(aRect.RightCenter(), SdrHdlKind::Right));
}