desktop/source/app/app.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 35275a42610e35f6a4250529ce01450c88b4583d Author: Michael Meeks <michael.me...@collabora.com> AuthorDate: Sat Mar 4 21:19:08 2023 +0000 Commit: Michael Meeks <michael.me...@collabora.com> CommitDate: Tue Mar 7 08:35:36 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 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148222 Tested-by: Michael Meeks <michael.me...@collabora.com> Reviewed-by: Michael Meeks <michael.me...@collabora.com> diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 135a5b5fdb1f..d2eb5f3e2a9b 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -81,6 +81,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> @@ -340,6 +341,8 @@ namespace { void runGraphicsRenderTests() { + if (comphelper::LibreOfficeKit::isActive()) + return; #if !ENABLE_WASM_STRIP_PINGUSER if (!utl::isProductVersionUpgraded(false)) {