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
This commit is contained in:
parent
d71b854d18
commit
5eeea76f55
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue