diff options
author | David Tardon <dtardon@redhat.com> | 2015-04-27 16:38:23 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-05-11 06:56:24 +0200 |
commit | 4b2db8beda661a761d6f6014081c86b58ad6f79f (patch) | |
tree | cb757b38c9c7620014d1a45126b81436586dccd7 /editeng | |
parent | 65eec2d5fe33ff593a3bb4c8466b096ff98b4063 (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(); |