Skip to content

Commit 57c1f7f

Browse files
authored
Fix PDFDocument rendering upside down on macOS
1 parent c115301 commit 57c1f7f

File tree

1 file changed

+1
-1
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing

1 file changed

+1
-1
lines changed

bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/PDFDocument.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public PDFDocument(Device device, String filename, double widthInPoints, double
141141
if (pdfContext == 0) SWT.error(SWT.ERROR_NO_HANDLES);
142142

143143
// Create an NSGraphicsContext from the CGContext
144-
graphicsContext = NSGraphicsContext.graphicsContextWithGraphicsPort(pdfContext, true);
144+
graphicsContext = NSGraphicsContext.graphicsContextWithGraphicsPort(pdfContext, false);
145145
if (graphicsContext == null) {
146146
OS.CGContextRelease(pdfContext);
147147
pdfContext = 0;

0 commit comments

Comments
 (0)