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

David Tardon dtardon at redhat.com
Mon Apr 27 07:39:27 PDT 2015


 editeng/source/editeng/impedit3.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 89c92e533daf9ee597b858be8207dedcd1139643
Author: David Tardon <dtardon at redhat.com>
Date:   Mon Apr 27 16:38:23 2015 +0200

    rhbz#1215443 avoid null pointer dereference
    
    Change-Id: I0a7986703a6997c756d583d0e46907691f807b16

diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index 9dca951..427f333 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -3467,7 +3467,8 @@ void ImpEditEngine::Paint( OutputDevice* pOutDev, Rectangle aClipRect, Point aSt
                                         }
                                     }
 
-                                    if ( GetStatus().DoOnlineSpelling() && !pPortion->GetNode()->GetWrongList()->empty() && pTextPortion->GetLen() )
+                                    const WrongList* const pWrongList = pPortion->GetNode()->GetWrongList();
+                                    if ( GetStatus().DoOnlineSpelling() && pWrongList && !pWrongList->empty() && pTextPortion->GetLen() )
                                     {
                                         {//#105750# adjust LinePos for superscript or subscript text
                                             short _nEsc = aTmpFont.GetEscapement();


More information about the Libreoffice-commits mailing list