Mercurial > projects > dwt2
diff org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/Transform.d @ 16:dbfb303e8fb0
first complete successful compile (win-only)
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 18 Mar 2009 08:56:47 +0100 |
parents | bc29606a740c |
children |
line wrap: on
line diff
--- a/org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/Transform.d Sun Mar 15 19:51:07 2009 +0100 +++ b/org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/Transform.d Wed Mar 18 08:56:47 2009 +0100 @@ -91,7 +91,7 @@ temp = x * cos - y * sin; y = x * sin + y * cos; x = temp; - return new Point(Math.round(x + dx), Math.round(y + dy)); + return new Point(cast(double)Math.round(x + dx), cast(double)Math.round(y + dy)); } }