[Libreoffice-commits] core.git: sw/source

Mike Kaganski mike.kaganski at collabora.com
Sun Nov 19 08:47:30 UTC 2017


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

New commits:
commit dfc45f0abab98a1ce977c6ed95dfa07c185b6d11
Author: Mike Kaganski <mike.kaganski at 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 <ci at libreoffice.org>
    Reviewed-by: Julien Nabet <serval2412 at 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;


More information about the Libreoffice-commits mailing list