summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Holgate <matt@emobix.co.uk>2014-06-26 11:41:16 +0100
committerMatt Holgate <matt@emobix.co.uk>2014-06-26 11:59:21 +0100
commitab8ab6e087f464cab74e1b7d93771eb76ce3c493 (patch)
tree46149f4cac5879671131c0394f838bb4f0172a93
parentca43cfebcad7fef14b954e9b300e5bf818bfe4c5 (diff)
downloadmupdf-ab8ab6e087f464cab74e1b7d93771eb76ce3c493.tar.xz
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).
-rw-r--r--platform/ios/Classes/MuLibraryController.m2
1 files changed, 1 insertions, 1 deletions
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)