Revision: 2285
http://sourceforge.net/p/swingme/code/2285
Author: yuranet
Date: 2013-08-24 16:13:59 +0000 (Sat, 24 Aug 2013)
Log Message:
-----------
better error
Modified Paths:
--------------
AndroidME/src_MIDP/javax/microedition/lcdui/Graphics.java
AndroidME/src_MIDP/javax/microedition/lcdui/Image.java
Modified: AndroidME/src_MIDP/javax/microedition/lcdui/Graphics.java
===================================================================
--- AndroidME/src_MIDP/javax/microedition/lcdui/Graphics.java 2013-08-22 21:53:54 UTC (rev 2284)
+++ AndroidME/src_MIDP/javax/microedition/lcdui/Graphics.java 2013-08-24 16:13:59 UTC (rev 2285)
@@ -342,7 +342,7 @@
// may throw NullPointerException, this is ok
if (xSrc + width > src.getWidth() || ySrc + height > src.getHeight() ||
width < 0 || height < 0 || xSrc < 0 || ySrc < 0) {
- throw new IllegalArgumentException("Area out of Image");
+ throw new IllegalArgumentException("Area out of Image: "+src.getWidth()+"x"+src.getHeight()+" area: "+xSrc+","+ySrc+" "+width+"x"+height);
}
if (anchor == 0) {
Modified: AndroidME/src_MIDP/javax/microedition/lcdui/Image.java
===================================================================
--- AndroidME/src_MIDP/javax/microedition/lcdui/Image.java 2013-08-22 21:53:54 UTC (rev 2284)
+++ AndroidME/src_MIDP/javax/microedition/lcdui/Image.java 2013-08-24 16:13:59 UTC (rev 2285)
@@ -33,7 +33,7 @@
if (x + width > image.getWidth() || y + height > image.getHeight() ||
width <= 0 || height <= 0 || x < 0 || y < 0) {
- throw new IllegalArgumentException("Area out of Image");
+ throw new IllegalArgumentException("Area out of Image: "+image.getWidth()+"x"+image.getHeight()+" area: "+x+","+y+" "+width+"x"+height);
}
// MIDP: the result image width/height depends on the transform
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|