diff options
author | David Tardon <dtardon@redhat.com> | 2015-04-27 16:38:23 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-05-08 22:38:37 +0100 |
commit | 4fb7ff0dfde0f5163a148c6f9e542352a1528b12 (patch) | |
tree | eb36afdbd76f44990bb0696629bf529f70aa87d1 /editeng | |
parent | b4d2b39cb9e46cb0b09d5c1f3d3dadfeb16c30d2 (diff) |
rhbz#1215443 avoid null pointer dereference
Change-Id: I0a7986703a6997c756d583d0e46907691f807b16
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
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 c68520dc721a..c8c50a5f0b67 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -3473,7 +3473,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(); |