From 76fe5bddccfb9e27af1319678dfe3e287e124b79 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Sun, 12 Nov 2017 12:27:34 +0100 Subject: iOS, make sure SfxApplication::GetOrCreate() is called For some reason SfxApplication::GetOrCreate() was never called, this leads to problems when opening documents (reference to shared pointer). Adding dummy call to SfxApplication::GetOrCreate() to make sure the list contains at least one entry. Change-Id: Ic8848c17efae5a0a38c9e9f7299a5f36f69aef31 --- desktop/source/lib/init.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 58fd38013290..b7874dc54b2e 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -3593,6 +3593,7 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char // there might be more elegant ways to get InitVCL() called, but // this one works :-) InitVCL(); + SfxApplication::GetOrCreate(); #endif if (eStage == PRE_INIT) -- cgit