desktop/source/app/app.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 5f340bbcf5916a5dc66e65a8f98aac397a26c494
Author:     Michael Meeks <michael.me...@collabora.com>
AuthorDate: Sat Mar 4 21:19:08 2023 +0000
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Tue Mar 7 22:45:17 2023 +0000

    Avoid running graphics tests when in lok mode.
    
    Best to avoid allocating and freeing 64Mb of RAM, and
    burning lots of CPU doing CPU rendering on an invisible
    for each document loaded through lok API.
    
    Change-Id: I656b400159b9d6a7a9f2c79d188e3aec9b3dd0e2
    Signed-off-by: Michael Meeks <michael.me...@collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148259
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>

diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index 4683f76e3295..1caad5299ff5 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -82,6 +82,7 @@
 #include <desktop/exithelper.h>
 #include <sal/log.hxx>
 #include <toolkit/helper/vclunohelper.hxx>
+#include <comphelper/lok.hxx>
 #include <comphelper/configuration.hxx>
 #include <comphelper/fileurl.hxx>
 #include <comphelper/threadpool.hxx>
@@ -341,6 +342,8 @@ namespace {
 
 void runGraphicsRenderTests()
 {
+    if (comphelper::LibreOfficeKit::isActive())
+        return;
     if (!utl::isProductVersionUpgraded(false))
     {
         return;

Reply via email to