summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2001-07-19 06:59:21 +0000
committerMathias Bauer <mba@openoffice.org>2001-07-19 06:59:21 +0000
commit4adf7e4d6352acd3d38d3827d2f051ad04d9d277 (patch)
tree532173ab976246c869e94f32681694be96e78322
parent81eb3dba32ac40760defdc775d94a20e78a67763 (diff)
#89377#: don't try to insert folders in linked storages twice
-rw-r--r--sot/source/sdstor/ucbstorage.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index 73e7631329a6..c02270248928 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -1202,7 +1202,7 @@ sal_Int16 UCBStorage_Impl::Commit()
sal_Int16 nLocalRet = COMMIT_RESULT_NOTHING_TO_DO;
if ( pElement->m_xStorage.Is() )
{
- if ( !pElement->m_bIsInserted || pElement->m_xStorage->Insert( m_pContent ) )
+ if ( !pElement->m_bIsInserted || m_bIsLinked || pElement->m_xStorage->Insert( m_pContent ) )
{
nLocalRet = pElement->m_xStorage->Commit();
pContent = pElement->GetContent();