summaryrefslogtreecommitdiff
path: root/sc/source/filter
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-02-08 22:49:55 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-07-06 02:14:40 +0200
commit3f66d987ce3a46eb836f2c11bbaf360bd6195e27 (patch)
treed3a3992c97344b6e9015dd6d164a8471b4b47ff1 /sc/source/filter
parenteac72845f5c9aac0fb346b2d48cee697006c057b (diff)
add a selection for the DB range to Dataprovider dlg
Change-Id: I02c63b46e21cd8d04e6b515e2cbbee08743d5657 Reviewed-on: https://gerrit.libreoffice.org/49459 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source/filter')
-rw-r--r--sc/source/filter/xml/xmlmappingi.cxx14
1 files changed, 5 insertions, 9 deletions
diff --git a/sc/source/filter/xml/xmlmappingi.cxx b/sc/source/filter/xml/xmlmappingi.cxx
index c40734afc177..c2f8b4004213 100644
--- a/sc/source/filter/xml/xmlmappingi.cxx
+++ b/sc/source/filter/xml/xmlmappingi.cxx
@@ -105,15 +105,11 @@ ScXMLMappingContext::ScXMLMappingContext( ScXMLImport& rImport,
if (!aProvider.isEmpty())
{
ScDocument* pDoc = GetScImport().GetDocument();
- ScDBData* pDBData = pDoc->GetDBCollection()->getNamedDBs().findByUpperName(ScGlobal::pCharClass->uppercase(aDBName));
- if (pDBData)
- {
- auto& rDataMapper = pDoc->GetExternalDataMapper();
- sc::ExternalDataSource aSource(aURL, aProvider, pDoc);
- aSource.setID(aID);
- aSource.setDBData(pDBData);
- rDataMapper.insertDataSource(aSource);
- }
+ auto& rDataMapper = pDoc->GetExternalDataMapper();
+ sc::ExternalDataSource aSource(aURL, aProvider, pDoc);
+ aSource.setID(aID);
+ aSource.setDBData(aDBName);
+ rDataMapper.insertDataSource(aSource);
}
}