diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-06-05 12:42:24 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-06-05 13:10:40 +0200 |
commit | 0b2c324d79ef24913846d64ee5f9be516fd2d660 (patch) | |
tree | 719e34df9d71c2359d5da227fe91cfcacb3b2a44 | |
parent | 1f1ad7ac0d1f60fb4db0b937fdac551118091ebc (diff) |
SwDBManager: fix relative reference of embedded data source
When the MM wizard creates an embedded data source definition, then we
used to always write absolute references to e.g. the data source Calc
file. Pass BaseURI to the filter, so in case the document and the data
source is in the same directory, relative references can be written.
Change-Id: Iaa316adaf435f82bb574c7e5085ac04bf13a71f8
-rw-r--r-- | sw/source/uibase/dbui/dbmgr.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx index be81dce3e81c..a95fa529a10c 100644 --- a/sw/source/uibase/dbui/dbmgr.cxx +++ b/sw/source/uibase/dbui/dbmgr.cxx @@ -2635,7 +2635,8 @@ OUString SwDBManager::LoadAndRegisterDataSource(const DBConnURITypes type, const aSequence = comphelper::InitPropertySequence( { {"TargetStorage", uno::makeAny(xStorage)}, - {"StreamRelPath", uno::makeAny(aStreamRelPath)} + {"StreamRelPath", uno::makeAny(aStreamRelPath)}, + {"BaseURI", uno::makeAny(aOwnURL)} }); // Refer to the sub-storage name in the document settings, so |