summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/outlview.cxx
diff options
context:
space:
mode:
authorDieter Loeschky <dl@openoffice.org>2000-09-22 07:21:11 +0000
committerDieter Loeschky <dl@openoffice.org>2000-09-22 07:21:11 +0000
commit41ae306c8028e2eb662268a66c46d8f14552fde9 (patch)
tree3d20d6d0725e5834574cc220f1950c77b6a6048a /sd/source/ui/view/outlview.cxx
parent7811104901e8dd295da34f81dd1d72e3cd483f7d (diff)
#78844# check pPara before calling HasChilds( pPara )
Diffstat (limited to 'sd/source/ui/view/outlview.cxx')
-rw-r--r--sd/source/ui/view/outlview.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sd/source/ui/view/outlview.cxx b/sd/source/ui/view/outlview.cxx
index 656502ac5d73..eee4e18d4298 100644
--- a/sd/source/ui/view/outlview.cxx
+++ b/sd/source/ui/view/outlview.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: outlview.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: ka $ $Date: 2000-09-21 16:12:20 $
+ * last change: $Author: dl $ $Date: 2000-09-22 08:21:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1269,8 +1269,7 @@ BOOL SdOutlineView::PrepareClose(BOOL bUI)
pOPO = NULL;
// Wenn moeglich, OutlinerParaObject fuer Gliederung erzeugen
- BOOL bHasChilds = pOutliner->HasChilds(pPara);
- if (bHasChilds)
+ if ( pPara && pOutliner->HasChilds(pPara) )
{
// wieviele Absaetze in der Gliederung?
ULONG nTitlePara = pOutliner->GetAbsPos(pPara);