diff options
author | Sven Jacobi <sj@openoffice.org> | 2001-05-04 10:34:13 +0000 |
---|---|---|
committer | Sven Jacobi <sj@openoffice.org> | 2001-05-04 10:34:13 +0000 |
commit | a037cfaf32613feebd9845fc0a938f4a030b2b5e (patch) | |
tree | 299c29821713c69194a25986f0206a7d0d7dad75 | |
parent | bddd4f969e81fb1c1c8ce9656560c232cab1b72c (diff) |
#85379# don't access empty gluepoint list
-rw-r--r-- | svx/source/unodraw/gluepts.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/svx/source/unodraw/gluepts.cxx b/svx/source/unodraw/gluepts.cxx index 0867ac4dc8d6..7dab9563b172 100644 --- a/svx/source/unodraw/gluepts.cxx +++ b/svx/source/unodraw/gluepts.cxx @@ -2,9 +2,9 @@ * * $RCSfile: gluepts.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: cl $ $Date: 2000-10-31 12:12:52 $ + * last change: $Author: sj $ $Date: 2001-05-04 11:34:13 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -351,7 +351,8 @@ sal_Int32 SAL_CALL SvxUnoGluePointAccess::getCount() nCount += 4; const SdrGluePointList* pList = mpObject->GetGluePointList(); - nCount += pList->GetCount(); + if( pList ) + nCount += pList->GetCount(); } } |