diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-11-15 16:24:44 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-11-15 16:24:44 +0000 |
commit | 5eeea76f55389f2e8b4bb0846d490119c3d7e217 (patch) | |
tree | fdc48b66591d04d79aac713bd876223c20b9aa5f /embeddedobj | |
parent | d71b854d18eb1cdb5d152c2bff68f47d46821650 (diff) |
INTEGRATION: CWS cd01 (1.13.2); FILE MERGED
2004/11/07 18:25:35 mav 1.13.2.1: #i35325# allow to export documents with embedded objects
Diffstat (limited to 'embeddedobj')
-rw-r--r-- | embeddedobj/source/commonembedding/persistence.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/embeddedobj/source/commonembedding/persistence.cxx b/embeddedobj/source/commonembedding/persistence.cxx index 379e4cfb47e8..e2260eb517f3 100644 --- a/embeddedobj/source/commonembedding/persistence.cxx +++ b/embeddedobj/source/commonembedding/persistence.cxx @@ -2,9 +2,9 @@ * * $RCSfile: persistence.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: pjunck $ $Date: 2004-10-27 15:09:14 $ + * last change: $Author: obo $ $Date: 2004-11-15 17:24:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1125,6 +1125,10 @@ void SAL_CALL OCommonEmbeddedObject::saveCompleted( sal_Bool bUseNew ) if ( m_bIsLink ) return; + // it is allowed to call saveCompleted( false ) for nonstored objects + if ( !m_bWaitSaveCompleted && !bUseNew ) + return; + OSL_ENSURE( m_bWaitSaveCompleted, "Unexpected saveCompleted() call!\n" ); if ( !m_bWaitSaveCompleted ) throw io::IOException(); // TODO: illegal call |