vcl/osx/salprn.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit bf94f110eef9e1c30df3041611b1bd15d7dde9ee
Author: Douglas Mencken <[email protected]>
Date: Thu Jun 12 15:05:06 2014 -0400
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 <[email protected]>
Tested-by: Caolán McNamara <[email protected]>
(cherry picked from commit e509b9303bd0141143bc6e707f98a72b96d91311)
diff --git a/vcl/osx/salprn.cxx b/vcl/osx/salprn.cxx
index cc4e971..55572dc 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];
}
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits