basic/source/uno/namecont.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 3c25a2a114c0bb66641ad27499610fe5ee4393b9
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Tue May 10 12:42:13 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Tue May 10 19:41:31 2022 +0200

    tdf#121740 dont bother checking for VBA libraries
    
    speeds up loading by 2%
    
    Change-Id: I63bf7ea2ab8087d6bb60b655fdf7718532050b89
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134114
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx
index 2ff7817dd44a..2f7d76d2251e 100644
--- a/basic/source/uno/namecont.cxx
+++ b/basic/source/uno/namecont.cxx
@@ -972,6 +972,10 @@ void SfxLibraryContainer::init_Impl( const OUString& 
rInitialDocumentURL,
     if( meInitMode != DEFAULT )
         return;
 
+    // tdf#121740 speed up loading documents with lots of embedded documents 
by avoid the UCB work of updating non-existent VBA libraries
+    if (rInitialDocumentURL.isEmpty())
+        return;
+
     INetURLObject aUserBasicInetObj( o3tl::getToken(maLibraryPath, 1, ';') );
     OUString aStandardStr("Standard");
 

Reply via email to