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

Caolán McNamara caolanm at redhat.com
Mon Jul 1 04:56:55 PDT 2013


 sw/source/core/unocore/unocrsrhelper.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3090cfc972287da3fbdc567387527b65b3bfd128
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Jul 1 12:56:17 2013 +0100

    Resolves: rhbz#979758 crash on 'Diagrammen in LibreOffice' help page
    
    Change-Id: I269846840b8e2f67838da525c020a305901cf903

diff --git a/sw/source/core/unocore/unocrsrhelper.cxx b/sw/source/core/unocore/unocrsrhelper.cxx
index deeb5ba..66202c0 100644
--- a/sw/source/core/unocore/unocrsrhelper.cxx
+++ b/sw/source/core/unocore/unocrsrhelper.cxx
@@ -176,7 +176,7 @@ void GetSelectableFromAny(uno::Reference<uno::XInterface> const& xIfc,
     if (pRanges)
     {
         SwUnoCrsr const* pUnoCrsr = pRanges->GetCursor();
-        if (pUnoCrsr->GetDoc() == &rTargetDoc)
+        if (pUnoCrsr && pUnoCrsr->GetDoc() == &rTargetDoc)
         {
             o_rpPaM = lcl_createPamCopy(*pUnoCrsr);
         }


More information about the Libreoffice-commits mailing list