diff options
author | Johan Paulsson <gonz@Akita.local> | 2013-12-01 13:23:59 -0800 |
---|---|---|
committer | Johan Paulsson <gonz@Akita.local> | 2013-12-01 13:23:59 -0800 |
commit | 2b7726352d1d422d4284618c8762637f64ec9a68 (patch) | |
tree | a1a3194acd6aaa2054b34eaee3ef38a34977124e /tikzit/src/osx/PreviewController.m | |
parent | 2c0baccbe99f52c402d6c0f9882192477c9b5246 (diff) |
osx gui: Fixed dragging of the preview pdf to all applications.
Diffstat (limited to 'tikzit/src/osx/PreviewController.m')
-rw-r--r-- | tikzit/src/osx/PreviewController.m | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tikzit/src/osx/PreviewController.m b/tikzit/src/osx/PreviewController.m index 94a80a4..310c2ab 100644 --- a/tikzit/src/osx/PreviewController.m +++ b/tikzit/src/osx/PreviewController.m @@ -109,8 +109,7 @@ static PreviewController *preview = nil; [errorText setString:@""]; [errorTextView setHidden:YES]; - data = [NSData dataWithContentsOfFile:pdfFile]; - PDFDocument *doc = [[PDFDocument alloc] initWithData:data]; + PDFDocument *doc = [[PDFDocument alloc] initWithURL:[[NSURL alloc] initFileURLWithPath:pdfFile]]; // pad the PDF by a couple of pixels if ([doc pageCount] >= 1) { |