diff options
author | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-02-22 10:16:39 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-02-22 10:16:39 +0100 |
commit | d28b920406a67449c4e0d5018aa36c6dcf1162f8 (patch) | |
tree | 1aab7aa54d78fa7522405a8cf7f40f66c6db1719 /dbaccess | |
parent | eb03a387b1a95b8b4e5eea60c2b7c9c40d71597b (diff) |
autorecovery: care for recovering a previously unmodified file (where SalvagedFile is empty)
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/dataaccess/databasedocument.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx index 5bee9849b175..8b1646862029 100644 --- a/dbaccess/source/core/dataaccess/databasedocument.cxx +++ b/dbaccess/source/core/dataaccess/databasedocument.cxx @@ -689,7 +689,8 @@ void SAL_CALL ODatabaseDocument::recoverFromFile( const ::rtl::OUString& i_Sourc // by definition (of XDocumentRecovery), we're responsible for delivering a fully-initialized document, // which includes an attachResource call. - impl_attachResource( i_SalvagedFile, aMediaDescriptor.getPropertyValues(), aGuard ); + const ::rtl::OUString sLogicalDocumentURL( i_SalvagedFile.getLength() ? i_SalvagedFile : i_SourceLocation ); + impl_attachResource( sLogicalDocumentURL, aMediaDescriptor.getPropertyValues(), aGuard ); // <- SYNCHRONIZED } catch( const Exception& ) |