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

Julien Nabet serval2412 at yahoo.fr
Fri Dec 13 15:16:09 PST 2013


 sw/source/ui/docvw/edtwin.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f279acd3678d014d9d5dafe41971e0da4dec7b6c
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Dec 14 00:15:28 2013 +0100

    cppcheck: reduce scope
    
    Change-Id: I93153e066f136d977c3d5ea12da174bd26975e27

diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index 4b82c16..723602b 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();


More information about the Libreoffice-commits mailing list