diff options
author | jp <jp@openoffice.org> | 2000-10-30 13:32:03 +0000 |
---|---|---|
committer | jp <jp@openoffice.org> | 2000-10-30 13:32:03 +0000 |
commit | 360776a64a9e2d4d362edec89a6f8f837d054258 (patch) | |
tree | 6ddff437d1e2d8d957d287d6f71b5737a511c409 /sw/source/ui/app | |
parent | 55db9cd721d46ea1ac95531088a564cf64272404 (diff) |
Bug #79589#: View must not exist
Diffstat (limited to 'sw/source/ui/app')
-rw-r--r-- | sw/source/ui/app/docsh.cxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sw/source/ui/app/docsh.cxx b/sw/source/ui/app/docsh.cxx index 5f8e618f18fb..1c2194fe68eb 100644 --- a/sw/source/ui/app/docsh.cxx +++ b/sw/source/ui/app/docsh.cxx @@ -2,9 +2,9 @@ * * $RCSfile: docsh.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 17:14:31 $ + * last change: $Author: jp $ $Date: 2000-10-30 14:32:03 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -581,9 +581,11 @@ BOOL SwDocShell::Save() } SetError( nErr ? nErr : nVBWarning ); - const SfxStringItem aTmp( SID_DOC_MODIFIED, ' ' ); - pWrtShell->GetView().GetViewFrame()->GetBindings().SetState( aTmp ); - + SfxViewFrame* pFrm = pWrtShell ? pWrtShell->GetView().GetViewFrame() : 0; + if( pFrm ) + { + pFrm->GetBindings().SetState( SfxStringItem( SID_DOC_MODIFIED, ' ' )); + } return !IsError( nErr ); } @@ -1466,6 +1468,9 @@ BOOL SwTmpPersist::SaveCompleted( SvStorage * pStor ) /*------------------------------------------------------------------------ $Log: not supported by cvs2svn $ + Revision 1.1.1.1 2000/09/18 17:14:31 hr + initial import + Revision 1.388 2000/09/18 16:05:10 willem.vandorp OpenOffice header added. |