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

New commits:
commit 3090cfc972287da3fbdc567387527b65b3bfd128
Author: Caolán McNamara <[email protected]>
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);
         }
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to