summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2005-10-26 18:04:01 +0000
committerSilenio Quarti <silenio>2005-10-26 18:04:01 +0000
commit0e83e69e34c1016b74ad6756e1511fc7078c76c8 (patch)
treef4fcf9645143e6c67c3278fdd38e0f6b04ac84c3
parenta456d1e03b098510de831a57cbe6b764eed24dbc (diff)
downloadeclipse.platform.swt-0e83e69e34c1016b74ad6756e1511fc7078c76c8.tar.gz
eclipse.platform.swt-0e83e69e34c1016b74ad6756e1511fc7078c76c8.tar.xz
eclipse.platform.swt-0e83e69e34c1016b74ad6756e1511fc7078c76c8.zip
wrong test for is printer
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/GC.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/GC.java
index 01e80e1613..59d888f4a7 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/GC.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/GC.java
@@ -1163,7 +1163,7 @@ public void drawText (String string, int x, int y, int flags) {
boolean mode = true;
switch (data.textAntialias) {
case SWT.DEFAULT:
- if (data.window != 0 && data.control == 0) mode = false;
+ if (data.window == 0 && data.control == 0) mode = false;
break;
case SWT.OFF: mode = false; break;
}
@@ -2270,7 +2270,7 @@ public void setAntialias(int antialias) {
switch (antialias) {
case SWT.DEFAULT:
/* Printer is off by default */
- if (data.window != 0 && data.control == 0) mode = false;
+ if (data.window == 0 && data.control == 0) mode = false;
break;
case SWT.OFF: mode = false; break;
case SWT.ON: mode = true; break;