[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - sw/source

Julien Nabet serval2412 at yahoo.fr
Thu Jun 26 08:40:48 PDT 2014


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

New commits:
commit 01ee29125610a0fe4d6dcb080da09e3961f1236a
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Wed Jun 25 21:58:47 2014 +0200

    Resolves fdo#54155: Crash when playing with a Group inside a Group
    
    Cherry-picked from 7bd94d73ec56622685d0e23f8b5133ba110524be
    
    Change-Id: I89c80fca1cdc8bc88172eaf8057141d5e42a06dc
    Reviewed-on: https://gerrit.libreoffice.org/9910
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx
index c13dd12..04f2945 100644
--- a/sw/source/core/frmedt/feshview.cxx
+++ b/sw/source/core/frmedt/feshview.cxx
@@ -1198,7 +1198,7 @@ sal_Bool SwFEShell::ShouldObjectBeSelected(const Point& rPt)
 
             // Don't select header / footer objects in body edition and vice-versa
             SwContact* pContact = static_cast<SwContact*>(pObj->GetUserCall());
-            if ( !pContact->ObjAnchoredAtPage() )
+            if (pContact && !pContact->ObjAnchoredAtPage() )
             {
                 const SwPosition& rPos = pContact->GetCntntAnchor();
                 bool bInHdrFtr = GetDoc()->IsInHeaderFooter( rPos.nNode );


More information about the Libreoffice-commits mailing list