This commit is contained in:
Yorick
2015-03-17 13:28:01 +01:00
11 changed files with 27 additions and 7 deletions
+3 -1
View File
@@ -114,9 +114,11 @@ public abstract class DrawObject
{
shape = new Rectangle2D.Double(0, 0, image.getWidth(null), image.getHeight(null));
return getTransform().createTransformedShape(shape).contains(clickPoint);
} else
{
shape = new Rectangle2D.Double(-7, -7, image.getWidth(null) + 7, image.getHeight(null) + 7);
shape = new Rectangle2D.Double(-9, -9, image.getWidth(null) + 13, image.getHeight(null) + 13);
return getTransformSelection().createTransformedShape(shape).contains(clickPoint);
}