[Libreoffice-commits] core.git: ios/experimental
Tor Lillqvist
tml at iki.fi
Sat Mar 30 15:15:56 PDT 2013
ios/experimental/LibreOffice/LibreOffice/lo.mm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 003a05b2570d29caa668a75b0f9ba46d0c867cb6
Author: Tor Lillqvist <tml at iki.fi>
Date: Sun Mar 31 00:14:52 2013 +0200
Must pass the test document as a file: URI because it is percent-escaped
Change-Id: I8e27f0cb4a9605a97d8120f9f4697e7f939135c1
diff --git a/ios/experimental/LibreOffice/LibreOffice/lo.mm b/ios/experimental/LibreOffice/LibreOffice/lo.mm
index f23bdd0..983839b 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);
}
More information about the Libreoffice-commits
mailing list