diff options
author | Kevin Walzer <kw@codebykevin.com> | 2021-07-04 02:39:50 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2021-07-04 02:39:50 (GMT) |
commit | 369d5077bb9552a1aa618bb0693fcd24031b3200 (patch) | |
tree | c1893a066fdadaeae84a478412e245c3cfebe7bf /macosx | |
parent | acd0a9576f426e1f232cfa9facbfa06b8d6a34af (diff) | |
download | tk-369d5077bb9552a1aa618bb0693fcd24031b3200.zip tk-369d5077bb9552a1aa618bb0693fcd24031b3200.tar.gz tk-369d5077bb9552a1aa618bb0693fcd24031b3200.tar.bz2 |
Minor tweak
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXPrint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXPrint.c b/macosx/tkMacOSXPrint.c index cb512bf..51f09cb 100644 --- a/macosx/tkMacOSXPrint.c +++ b/macosx/tkMacOSXPrint.c @@ -262,7 +262,7 @@ OSStatus FinishPrint(NSString * file, int buttonValue) { } /* Destination is preview. Open file in default application for PDF. */ - if ((status = noErr) && (printDestination == kPMDestinationPreview)) { + if ((status == noErr) && (printDestination == kPMDestinationPreview)) { CFStringRef urlpath = CFURLCopyFileSystemPath(printURL, kCFURLPOSIXPathStyle); NSString * path = (NSString * ) urlpath; NSURL * url= [NSURL fileURLWithPath:path]; |