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

Miklos Vajna vmiklos at collabora.co.uk
Mon Apr 11 07:51:26 UTC 2016


 sd/source/ui/unoidl/unomodel.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0dec0ffec52a7dc01ac3f8ef26bd5a7d12ac4cf2
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Mon Apr 11 09:16:13 2016 +0200

    cid#1358429 null pointer dereference
    
    Change-Id: Iec3e2218c356c5a3d01edc0aa55ad9fd18e957f2

diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index a44f12e..bb58cd2 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -2438,9 +2438,9 @@ void SdXImpressDocument::postMouseEvent(int nType, int nX, int nY, int nCount, i
     SolarMutexGuard aGuard;
 
     DrawViewShell* pViewShell = GetViewShell();
-    Window* pWindow = pViewShell->GetActiveWindow();
     if (!pViewShell)
         return;
+    Window* pWindow = pViewShell->GetActiveWindow();
 
     Point aPos(Point(convertTwipToMm100(nX), convertTwipToMm100(nY)));
     MouseEvent aEvent(aPos, nCount,


More information about the Libreoffice-commits mailing list