summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
diff options
context:
space:
mode:
authorSilenio Quarti <Silenio_Quarti@ca.ibm.com>2011-11-09 10:55:11 -0500
committerCarolyn MacLeod <Carolyn_MacLeod@ca.ibm.com>2011-11-09 10:55:11 -0500
commit84b7f4eb839c40c67c06cf1cb3c34b24bf589c5a (patch)
tree9988bdf536c1fc3d1142ea12a4857e7ed711c753 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
parent943d6b15e034a4b2ef199037f7b7331f92620fef (diff)
downloadeclipse.platform.swt-84b7f4eb839c40c67c06cf1cb3c34b24bf589c5a.tar.gz
eclipse.platform.swt-84b7f4eb839c40c67c06cf1cb3c34b24bf589c5a.tar.xz
eclipse.platform.swt-84b7f4eb839c40c67c06cf1cb3c34b24bf589c5a.zip
Bug 362999 - SWTGraphics#scale is broken when used with Printer on
Eclipse 3.7 / GTK
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
index cd51b3b4fd..08e999ad0c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
@@ -2792,6 +2792,9 @@ double[] identity() {
} else {
Cairo.cairo_matrix_init_identity(identity);
}
+ if (data.identity != null) {
+ Cairo.cairo_matrix_multiply(identity, data.identity, identity);
+ }
return identity;
}