diff options
-rw-r--r-- | sot/source/sdstor/ucbstorage.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index e6993a6d6e89..d3057b34f05b 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -1245,7 +1245,9 @@ void UCBStorage::SetClass( const SvGlobalName & rClass, ULONG nOriginalClipForma void UCBStorage::SetClassId( const ClsId& rClsId ) { - pImp->m_aClassId = SvGlobalName( (const CLSID&) pImp->m_aClassId ); + pImp->m_aClassId = SvGlobalName( (const CLSID&) rClsId ); + if ( pImp->m_aClassId == SvGlobalName() ) + return; // in OLE storages the clipboard format an the user name will be transferred when a storage is copied because both are // stored in one the substreams |