[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - sw/source
Caolán McNamara
caolanm at redhat.com
Tue Jul 2 00:18:55 PDT 2013
sw/source/core/unocore/unocrsrhelper.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 2a25f32cef037417e399c88c29b0bfe53cb3c5a4
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
(cherry picked from commit 3090cfc972287da3fbdc567387527b65b3bfd128)
Reviewed-on: https://gerrit.libreoffice.org/4655
Reviewed-by: Fridrich Strba <fridrich at documentfoundation.org>
Tested-by: Fridrich Strba <fridrich at documentfoundation.org>
diff --git a/sw/source/core/unocore/unocrsrhelper.cxx b/sw/source/core/unocore/unocrsrhelper.cxx
index d949481..41044de 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