Skip to content
Snippets Groups Projects
Commit 8253f99f authored by brinn's avatar brinn
Browse files

Avoid Exception when min==max (maybe related to SOB-25).

SVN: 24310
parent a7e2682d
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,13 @@ class NumberHeatmapRenderer implements IHeatmapRenderer<Float>
this.min = min;
this.max = max;
this.colors = ColorConstants.asColors(colors);
this.step = (max - min) / this.colors.size();
if (min == max)
{
this.step = 1.0f / this.colors.size();
} else
{
this.step = (max - min) / this.colors.size();
}
this.realNumberRenderer = realNumberRenderer;
}
......
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