diff options
author | Douglas Mencken <dougmencken@gmail.com> | 2014-06-12 15:05:06 -0400 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-13 08:54:06 +0000 |
commit | e509b9303bd0141143bc6e707f98a72b96d91311 (patch) | |
tree | ce8cd62f87e1b8b660554d7e5bfc804f20fcdcf2 /vcl | |
parent | e88c019fba743999c7b5f31adc5ff5946649734b (diff) |
fix build error "error: NSPrintJobSavingURL was not declared in this scope"
see commits:
c5c317ed20933c6508b35c34039df31669943f1c
Change-Id: I3a886bde11dc3620cffeb3e2e579c7b37285d9c5
Reviewed-on: https://gerrit.libreoffice.org/9759
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/osx/salprn.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/osx/salprn.cxx b/vcl/osx/salprn.cxx index 9440bb3eec7d..52c090243087 100644 --- a/vcl/osx/salprn.cxx +++ b/vcl/osx/salprn.cxx @@ -462,7 +462,11 @@ bool AquaSalInfoPrinter::StartJob( const OUString* i_pFileName, { [mpPrintInfo setJobDisposition: NSPrintSaveJob]; NSString* pPath = CreateNSString( *i_pFileName ); +#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060 + [pPrintDict setObject:[NSURL fileURLWithPath:pPath] forKey:NSPrintSavePath]; +#else [pPrintDict setObject:[NSURL fileURLWithPath:pPath] forKey:NSPrintJobSavingURL]; +#endif [pPath release]; } |