sc/source/ui/docshell/dbdocfun.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 22909e644827e6d5bc98b64d581c0616ffb5483c
Author: Julien Nabet <serval2...@yahoo.fr>
Date:   Sun Sep 15 22:39:23 2013 +0200

    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: https://gerrit.libreoffice.org/5959
    Tested-by: Lionel Elie Mamane <lio...@mamane.lu>
    Reviewed-by: Lionel Elie Mamane <lio...@mamane.lu>

diff --git a/sc/source/ui/docshell/dbdocfun.cxx 
b/sc/source/ui/docshell/dbdocfun.cxx
index 5a4b6fd..cd4e38a 100644
--- a/sc/source/ui/docshell/dbdocfun.cxx
+++ b/sc/source/ui/docshell/dbdocfun.cxx
@@ -1698,7 +1698,7 @@ void ScDBDocFunc::UpdateImport( const String& rTarget, 
const svx::ODataAccessDes
     OUString sDBName;
     OUString sDBTable;
     sal_Int32 nCommandType = 0;
-    rDescriptor[svx::daDataSource]  >>= sDBName;
+    sDBName = rDescriptor.getDataSource();
     rDescriptor[svx::daCommand]     >>= sDBTable;
     rDescriptor[svx::daCommandType] >>= nCommandType;
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to