From 9f3dac88c019f48df0a3b8baa02fd0872b467e9d Mon Sep 17 00:00:00 2001 From: smallsql Date: Tue, 16 Nov 2010 10:13:04 +0000 Subject: [PATCH] Because not all methods that modify the transaction has saved the Java transaction that it make no sense to hold a copy of the Java transaction. In most cases it is wrong. --- awt/graphics.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/awt/graphics.cs b/awt/graphics.cs index 83fbf3f7..0ff7febb 100644 --- a/awt/graphics.cs +++ b/awt/graphics.cs @@ -158,7 +158,6 @@ namespace ikvm.awt private Color bgcolor; private java.awt.Font font; private java.awt.Stroke stroke; - private java.awt.geom.AffineTransform tx; private static java.awt.BasicStroke defaultStroke = new java.awt.BasicStroke(); private Font netfont; private Brush brush; @@ -1155,18 +1154,13 @@ namespace ikvm.awt public override void setTransform(java.awt.geom.AffineTransform tx) { g.Transform = J2C.ConvertTransform(tx); - this.tx = tx; } public override java.awt.geom.AffineTransform getTransform() { - if (tx != null) - { - return tx; - } using (Matrix matrix = g.Transform) { - return tx = C2J.ConvertMatrix(matrix); + return C2J.ConvertMatrix(matrix); } }