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

New commits:
commit f279acd3678d014d9d5dafe41971e0da4dec7b6c
Author: Julien Nabet <serval2...@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();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to