[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - editeng/source
David Tardon
dtardon at redhat.com
Fri May 8 14:32:31 PDT 2015
editeng/source/editeng/impedit3.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 4fb7ff0dfde0f5163a148c6f9e542352a1528b12
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
Signed-off-by: Michael Meeks <michael.meeks at collabora.com>
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index c68520d..c8c50a5 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();
More information about the Libreoffice-commits
mailing list