summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-07-04 11:57:27 +0200
committerMiklos Vajna <vmiklos@collabora.com>2019-07-04 15:34:56 +0200
commitad8f4c4432e0c5c052b6f87977d1ad8663debe09 (patch)
tree53e27888b541f22c2f7ccfda323207cfe9bcad5c /desktop/source
parentdcfe6eaee16cac0aff4a66efbe19c69431579485 (diff)
vcl lok: pre-load graphic libraries
This is needed to be able to load e.g. TIFF files in Online, which does not have code in the chroot since online.git commit ad21717498cc214d5d5d5c0ff378238552137e2f (Avoid copying most code into the chroot jail., 2018-03-10). Change-Id: Ib095191ee690d9da6269878a82b1c6995df50dfa Reviewed-on: https://gerrit.libreoffice.org/75077 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/lib/init.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 97ba8d523e28..b014080b4aff 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -5038,6 +5038,9 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char
InitVCL();
}
+ // pre-load all graphic libraries.
+ GraphicFilter::GetGraphicFilter().preload();
+
// pre-load all component libraries.
if (!xContext.is())
throw css::uno::DeploymentException("preInit: XComponentContext is not created");