diff options
-rw-r--r-- | sot/source/sdstor/ucbstorage.cxx | 2 |
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(); |