Kaydet (Commit) 0907b6dc authored tarafından jan Iversen's avatar jan Iversen

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
üst e616d089
...@@ -31,8 +31,12 @@ static LibreOfficeKitDocument* document; ...@@ -31,8 +31,12 @@ static LibreOfficeKitDocument* document;
// Bridge functions to LibreOfficeKit // Bridge functions to LibreOfficeKit
extern "C" int BridgeLOkit_Init(const char *path) extern "C" int BridgeLOkit_Init(const char *path)
{ {
char bufUserPath[200];
strcpy(bufUserPath, path);
strcpy(bufUserPath + strlen(path), "/user");
// Initialize LibreOfficeKit // Initialize LibreOfficeKit
kit = lok_init(path); kit = lok_init_2(path, bufUserPath);
udata_setCommonData(NULL, NULL); udata_setCommonData(NULL, NULL);
ucnv_open("iso-8859-3", NULL); ucnv_open("iso-8859-3", NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment