Skip to content

Commit

Permalink
* transformed points are nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianTerhorst committed Apr 6, 2017
1 parent 3d80c72 commit b664276
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ public Item findItemForPosition(Point position) {
//Todo: reverse sorting for click detection, because hidden object is getting drawed first und will be returned as the first as well
//Items are already sorted for depth sort so break should not be a problem here
for (Item item : this.items) {
if (item.transformedPoints == null) continue;
List<Point> items = new ArrayList<>();
Point top = null,
bottom = null,
Expand Down Expand Up @@ -297,7 +298,6 @@ static class Item {
}

Item(Path path, Color baseColor) {
//transformedPoints = new ArrayList<>();
drawPath = new android.graphics.Path();
drawn = 0;
this.paint = new Paint(Paint.ANTI_ALIAS_FLAG);
Expand Down

0 comments on commit b664276

Please sign in to comment.