Skip to content
Snippets Groups Projects
Commit c69e2642 authored by Frantisek Simon's avatar Frantisek Simon
Browse files

#109 Fixed issue with multi-thread access to iterator of array

parent 1450477a
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,9 @@ public class SignatureInputPane extends SignaturePane {
for (Array<Vector2> array : absolutePaths) {
Array<Point> percentageArray = new Array<Point>(array.size);
percentagePaths.add(percentageArray);
for (Vector2 point : array) {
// don't use foreach here. It fails with it sometimes due to multi thread call of this method
for (int i = 0; i < array.size; i++) {
Vector2 point = array.get(i);
percentageArray.add(new Point(point.x / getWidth(), point.y / getHeight()));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment