diff options
authorJulien Nabet <>2013-09-15 22:39:23 +0200
committerLionel Elie Mamane <>2013-09-16 20:11:45 +0000
commit4deb3ec0d5d94a36b3941176b30e662184d2297a (patch)
parent2a151b7e3258f24299f885d020b07ab50582e7df (diff)
fdo#69091: Copying data from Base-table to Calc by drag and drop
Depending on whether the data source is registered, either rDescriptor[svx::daDataSource] or rDescriptor[svx::daDatabaseLocation] will be filled in (and should be used). Luckily, ODataAccessDescriptor provides a utility function that will automatically return the one that is set. Use that instead of hardcoding svx::daDataSource. Thank you Lionel! Change-Id: I02673e7924c4323915dea579015326194c3f5077 Reviewed-on: Tested-by: Lionel Elie Mamane <> Reviewed-by: Lionel Elie Mamane <>
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx
index 9f4d58d30f6a..79130fde39b4 100644
--- a/sc/source/ui/docshell/dbdocfun.cxx
+++ b/sc/source/ui/docshell/dbdocfun.cxx
@@ -1535,7 +1535,7 @@ void ScDBDocFunc::UpdateImport( const String& rTarget, const svx::ODataAccessDes
rtl::OUString sDBName;
rtl::OUString sDBTable;
sal_Int32 nCommandType = 0;
- rDescriptor[svx::daDataSource] >>= sDBName;
+ sDBName = rDescriptor.getDataSource();
rDescriptor[svx::daCommand] >>= sDBTable;
rDescriptor[svx::daCommandType] >>= nCommandType;