diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/heatmap/ColorSchema.java b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/heatmap/ColorSchema.java index c8b6ad7ba1..246bb88cf4 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/heatmap/ColorSchema.java +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/heatmap/ColorSchema.java @@ -66,7 +66,7 @@ DoubleFunction buildColorFunction(ResourceManager resourceManager) var p = normalizePerformance(performance); // cutover from yellow to black at +0.05 performance - var cutover = (MAX_PERFORMANCE + 0.05f) / 2f * MAX_PERFORMANCE; + var cutover = (MAX_PERFORMANCE + 0.05f) / (2f * MAX_PERFORMANCE); return new ColorGradient(// new ColorPoint(Colors.theme().defaultBackground(), 0), //