diff options
author | Mathias Bauer <mba@openoffice.org> | 2001-02-22 08:31:42 +0000 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2001-02-22 08:31:42 +0000 |
commit | 943f1ab59d792e70944437d47112480fb7aabc92 (patch) | |
tree | 607571fe203a00d7070e09fdd06fc377f12610a7 /sot | |
parent | f2035a4d77ef4e64bab259d52aeee0eac5dc6f3b (diff) |
bugs in SetClassId
Diffstat (limited to 'sot')
-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 |