summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2001-02-02 14:54:45 +0000
committerMathias Bauer <mba@openoffice.org>2001-02-02 14:54:45 +0000
commitdc7c0e70b35525812b2abb048ff19da33bbf3b9f (patch)
treea73a4bc82aa10dc15ca13907ca15f779ed2b145e
parent7db49f1e979dec5487f1505e18581819801874bc (diff)
#83463#: fix in SaveWindows: current ViewFrame may be zero
-rw-r--r--sfx2/source/doc/objcont.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx
index b46f543f9b1b..44384e1dd032 100644
--- a/sfx2/source/doc/objcont.cxx
+++ b/sfx2/source/doc/objcont.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: objcont.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: mba $ $Date: 2000-11-16 15:55:40 $
+ * last change: $Author: mba $ $Date: 2001-02-02 15:54:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -173,7 +173,7 @@ FASTBOOL SfxObjectShell::SaveWindows_Impl( SvStorage &rStor ) const
// "uber alle Fenster iterieren (aber aktives Window zuletzt)
SfxViewFrame *pActFrame = SfxViewFrame::Current();
- if ( pActFrame->GetObjectShell() != this )
+ if ( !pActFrame || pActFrame->GetObjectShell() != this )
pActFrame = SfxViewFrame::GetFirst(this);
String aActWinData;