From 977ccf4b0fffc178ad550bda47421db5bc4c82fd Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 7 Nov 2018 09:31:18 +0200 Subject: loplugin:collapseif in sw Change-Id: I61e32f6ecaf72d51528af4b067d651a17691d4b1 Reviewed-on: https://gerrit.libreoffice.org/62986 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/uibase/ribbar/conarc.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sw/source/uibase/ribbar/conarc.cxx') diff --git a/sw/source/uibase/ribbar/conarc.cxx b/sw/source/uibase/ribbar/conarc.cxx index 67ab49b8bc2f..e9c082806439 100644 --- a/sw/source/uibase/ribbar/conarc.cxx +++ b/sw/source/uibase/ribbar/conarc.cxx @@ -33,11 +33,8 @@ ConstArc::ConstArc(SwWrtShell* pWrtShell, SwEditWin* pEditWin, SwView* pSwView) bool ConstArc::MouseButtonDown( const MouseEvent& rMEvt ) { bool bReturn = SwDrawBase::MouseButtonDown(rMEvt); - if (bReturn) - { - if (!m_nButtonUpCount) - m_aStartPoint = m_pWin->PixelToLogic(rMEvt.GetPosPixel()); - } + if (bReturn && !m_nButtonUpCount) + m_aStartPoint = m_pWin->PixelToLogic(rMEvt.GetPosPixel()); return bReturn; } -- cgit