diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-12-14 00:15:28 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-12-14 00:15:28 +0100 |
commit | f279acd3678d014d9d5dafe41971e0da4dec7b6c (patch) | |
tree | f3364207e18fe7ddde3939b53e31740eae4cf57f | |
parent | c7f4b6bb955ef8841c41e3595d152b5931f5c7a7 (diff) |
cppcheck: reduce scope
Change-Id: I93153e066f136d977c3d5ea12da174bd26975e27
-rw-r--r-- | sw/source/ui/docvw/edtwin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx index 4b82c160a246..723602b49612 100644 --- a/sw/source/ui/docvw/edtwin.cxx +++ b/sw/source/ui/docvw/edtwin.cxx @@ -2775,8 +2775,6 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt) { SwWrtShell &rSh = m_rView.GetWrtShell(); - SdrObject* pObj; - SdrPageView* pPV; // We have to check if a context menu is shown and we have an UI // active inplace client. In that case we have to ignore the mouse // button down event. Otherwise we would crash (context menu has been @@ -3090,6 +3088,8 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt) // only if no position to size was hit. if (!bHitHandle) { + SdrObject* pObj; + SdrPageView* pPV; if (pSdrView->PickObj(aDocPos, pSdrView->getHitTolLog(), pObj, pPV, SDRSEARCH_ALSOONMASTER | SDRSEARCH_BEFOREMARK)) { pSdrView->UnmarkAllObj(); |