diff options
author | David Tardon <dtardon@redhat.com> | 2015-04-27 16:38:23 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2015-04-27 16:38:44 +0200 |
commit | 89c92e533daf9ee597b858be8207dedcd1139643 (patch) | |
tree | cdf662a7dc724e2617fbeb1da6a492f8880585e9 /editeng | |
parent | b32953d19825605ed5d919f515c355a11b9c1e87 (diff) |
rhbz#1215443 avoid null pointer dereference
Change-Id: I0a7986703a6997c756d583d0e46907691f807b16
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit3.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index 9dca951d8208..427f333bb285 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(); |