sw/source/uibase/dbui/dbmgr.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit dfc45f0abab98a1ce977c6ed95dfa07c185b6d11
Author: Mike Kaganski <mike.kagan...@collabora.com>
Date:   Sun Nov 19 08:31:59 2017 +0200

    Reuse already existing value
    
    Change-Id: I996cd76b55265e783f51573b6d67b0c0187427c8
    Reviewed-on: https://gerrit.libreoffice.org/44924
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>

diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx
index f0726264ac4c..93aee382e4ad 100644
--- a/sw/source/uibase/dbui/dbmgr.cxx
+++ b/sw/source/uibase/dbui/dbmgr.cxx
@@ -2735,7 +2735,7 @@ OUString SwDBManager::LoadAndRegisterDataSource(const 
DBConnURITypes type, const
 
         OUString sNewName = INetURLObject::decode( aURL.getName(),
                                                  
INetURLObject::DecodeMechanism::Unambiguous );
-        sal_Int32 nExtLen = aURL.GetExtension().getLength();
+        sal_Int32 nExtLen = sExt.getLength();
         sNewName = sNewName.replaceAt( sNewName.getLength() - nExtLen - 1, 
nExtLen + 1, "" );
         if (pPrefix)
             sNewName = *pPrefix + sNewName;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to