From ab8ab6e087f464cab74e1b7d93771eb76ce3c493 Mon Sep 17 00:00:00 2001 From: Matt Holgate Date: Thu, 26 Jun 2014 11:41:16 +0100 Subject: Add missing 'period' to files launched via 'Open In' before file extension. Fixes bug #694711. As far as I could see, opening an XPS worked fine, the first time. However, if the same file was opened a second time, then it should have been saved with a number, e.g. foo(1).xps. However, the period was ommitted, so the file wasn't recognised as an XPS. This presumably wasn't an issue for PDF files, as PDF format is assumed by default (I am guessing). --- platform/ios/Classes/MuLibraryController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/ios/Classes') diff --git a/platform/ios/Classes/MuLibraryController.m b/platform/ios/Classes/MuLibraryController.m index c9e8840e..25ca6ea0 100644 --- a/platform/ios/Classes/MuLibraryController.m +++ b/platform/ios/Classes/MuLibraryController.m @@ -151,7 +151,7 @@ static NSString *alteredfilename(NSString *name, int i) NSString *nam = [name stringByDeletingPathExtension]; NSString *e = [name pathExtension]; - return [[[NSString alloc] initWithFormat:@"%@(%d)%@", nam, i, e] autorelease]; + return [[[NSString alloc] initWithFormat:@"%@(%d).%@", nam, i, e] autorelease]; } static NSString *moveOutOfInbox(NSString *docpath) -- cgit v1.2.3