You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2009/10/27 09:43:20 UTC
svn commit: r830094 -
/incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menus/MenuButtons.java
Author: smartini
Date: Tue Oct 27 08:43:20 2009
New Revision: 830094
URL: http://svn.apache.org/viewvc?rev=830094&view=rev
Log:
fixed eclipse warning
Modified:
incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menus/MenuButtons.java
Modified: incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menus/MenuButtons.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menus/MenuButtons.java?rev=830094&r1=830093&r2=830094&view=diff
==============================================================================
--- incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menus/MenuButtons.java (original)
+++ incubator/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menus/MenuButtons.java Tue Oct 27 08:43:20 2009
@@ -137,8 +137,8 @@
public Point getRandomLocation(Shape shape) {
Bounds bounds = shape.getBounds();
- int x = (int)(Math.random() * (double)(MAX_X - bounds.width));
- int y = (int)(Math.random() * (double)(MAX_Y - bounds.height));
+ int x = (int)(Math.random() * (MAX_X - bounds.width));
+ int y = (int)(Math.random() * (MAX_Y - bounds.height));
return new Point(x, y);
}