diff options
author | Mathias Bauer <mba@openoffice.org> | 2002-07-18 14:11:33 +0000 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2002-07-18 14:11:33 +0000 |
commit | 0e9fb2b5f1b18aefd35bb8c58c5f36ad418c569c (patch) | |
tree | d4a4e676887c3678ed61614d907d04a8148ba926 /sfx2 | |
parent | 855492a8bf10540b277ea030f9bc9f99eee7c006 (diff) |
#99588#: ObjectShell may be released before view was pushed
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 635b9eb9d4ec..9128ad51acf9 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -2,9 +2,9 @@ * * $RCSfile: viewfrm.cxx,v $ * - * $Revision: 1.58 $ + * $Revision: 1.59 $ * - * last change: $Author: mba $ $Date: 2002-07-18 07:34:31 $ + * last change: $Author: mba $ $Date: 2002-07-18 15:11:33 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1243,7 +1243,7 @@ void SfxViewFrame::ReleaseObjectShell_Impl( sal_Bool bStoreView ) // Jetzt alle SubShells wechhauen pDyingViewSh->PushSubShells_Impl( sal_False ); sal_uInt16 nLevel = pDispatcher->GetShellLevel( *pDyingViewSh ); - if ( nLevel ) + if ( nLevel && nLevel != USHRT_MAX ) { // Es gibt immer nocht SubShells SfxShell *pSubShell = pDispatcher->GetShell( nLevel-1 ); |