Skip to content
Snippets Groups Projects
Commit f3c5219a authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Handle zero minimum value in specular plot

parent a11825fc
No related branches found
No related tags found
No related merge requests found
......@@ -227,6 +227,7 @@ QPair<double, double> SpecularDataItem::dataRange() const
// uniform and expected behaviour both in the case of zoomed plot and in the case of
// default plot layout
min /= 2.0;
min = std::max(std::numeric_limits<double>::epsilon(), min);
max *= 2.0;
return QPair<double, double>(min, max);
......
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