diff options
author | jan Iversen <jani@libreoffice.org> | 2017-05-29 18:31:14 +0200 |
---|---|---|
committer | jan Iversen <jani@libreoffice.org> | 2017-05-29 18:38:12 +0200 |
commit | 0907b6dc0467f632660c79c035ee7c2fba5346c4 (patch) | |
tree | de903233a3954cda7c81ce799f339273146b168e /ios | |
parent | e616d08923b158934ba40408a33be326853bfbb8 (diff) |
iOS, set user profile path
having NULL as user_profile path does not work,
changed call to LOK_init_2 with user profile path
Change-Id: Ib7c882eccf228057b5a2d9d21973e8f95d4aee77
Diffstat (limited to 'ios')
-rwxr-xr-x | ios/experimental/LibreOfficeLight/LibreOfficeLight/lokit.mm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/lokit.mm b/ios/experimental/LibreOfficeLight/LibreOfficeLight/lokit.mm index 1964de9a7420..e3ba0ac91432 100755 --- a/ios/experimental/LibreOfficeLight/LibreOfficeLight/lokit.mm +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/lokit.mm @@ -31,8 +31,12 @@ static LibreOfficeKitDocument* document; // Bridge functions to LibreOfficeKit extern "C" int BridgeLOkit_Init(const char *path) { + char bufUserPath[200]; + strcpy(bufUserPath, path); + strcpy(bufUserPath + strlen(path), "/user"); + // Initialize LibreOfficeKit - kit = lok_init(path); + kit = lok_init_2(path, bufUserPath); udata_setCommonData(NULL, NULL); ucnv_open("iso-8859-3", NULL); |