summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorjan Iversen <jani@libreoffice.org>2017-10-23 17:32:19 +0200
committerjan Iversen <jani@libreoffice.org>2017-10-24 09:49:49 +0200
commitb69f923a22f7404d1c1feb8d0d16a16a24bd548d (patch)
tree756e4d457b18250eb1d2f4db31cfb6ae659ebe07 /desktop/source
parentac45764b05385a51d469fda2e4bf9233904ca5a9 (diff)
iOS, updated desktop/source/lib/init.cxx
InitVCL() needs to be called for iOS, even though it runs without desktop, since that function fills structures like mpDefInst Change-Id: Icebd4a4111881b46a8abc1e1988921a19e5e4527
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/lib/init.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 01b2e9347596..10a8ff1f51e6 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3421,6 +3421,13 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char
Application::EnableHeadlessMode(true);
+#ifdef IOS
+ // mpDefInst need to be initialized, which only happens in InitVCL(),
+ // there might be more elegant ways to get InitVCL() called, but
+ // this one works :-)
+ InitVCL();
+#endif
+
if (eStage == PRE_INIT)
{
InitVCL();