diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-03-31 00:14:52 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-03-31 00:15:32 +0200 |
commit | 003a05b2570d29caa668a75b0f9ba46d0c867cb6 (patch) | |
tree | ce5e7b570a1b079505c18dbb6b464b36568b879a /ios | |
parent | b3c914ffffac786d3f64bda7b6614a4d7fe69047 (diff) |
Must pass the test document as a file: URI because it is percent-escaped
Change-Id: I8e27f0cb4a9605a97d8120f9f4697e7f939135c1
Diffstat (limited to 'ios')
-rw-r--r-- | ios/experimental/LibreOffice/LibreOffice/lo.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ios/experimental/LibreOffice/LibreOffice/lo.mm b/ios/experimental/LibreOffice/LibreOffice/lo.mm index f23bdd01c649..983839b4ce2c 100644 --- a/ios/experimental/LibreOffice/LibreOffice/lo.mm +++ b/ios/experimental/LibreOffice/LibreOffice/lo.mm @@ -178,7 +178,9 @@ lo_initialize(void) argv[3] = [uno_services UTF8String]; assert(strcmp(argv[4], "placeholder-document") == 0); - argv[4] = [[app_root_escaped stringByAppendingPathComponent: @"test1.odt"] UTF8String]; + NSString *file = @"file://"; + file = [file stringByAppendingString: [app_root_escaped stringByAppendingPathComponent: @"test1.odt"]]; + argv[4] = [file UTF8String]; osl_setCommandArgs(argc, (char **) argv); } |