Skip to content
Snippets Groups Projects
Commit 6d59d8c2 authored by Edvard Granheim Harbo's avatar Edvard Granheim Harbo
Browse files

Merge branch 'BugFix' into 'dev'

Refactor: Fixed the zoom and navigation bug

See merge request !43
parents 2270c3b5 7b0e729d
Branches
No related tags found
2 merge requests!54Final release,!43Refactor: Fixed the zoom and navigation bug
...@@ -66,6 +66,10 @@ public class View extends BorderPane implements ChaosGameObserver { ...@@ -66,6 +66,10 @@ public class View extends BorderPane implements ChaosGameObserver {
} }
} }
if (hitCounts.isEmpty()) {
return;
}
Collections.sort(hitCounts); Collections.sort(hitCounts);
int n = hitCounts.size(); int n = hitCounts.size();
greenThreshold = hitCounts.get((int) (n * 0.33)); greenThreshold = hitCounts.get((int) (n * 0.33));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment