From 0b2c324d79ef24913846d64ee5f9be516fd2d660 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 5 Jun 2015 12:42:24 +0200 Subject: 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 --- sw/source/uibase/dbui/dbmgr.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit