Skip to content
Snippets Groups Projects
Unverified Commit fd2b38ec authored by Pospelov, Gennady's avatar Pospelov, Gennady Committed by GitHub
Browse files

Merge pull request #401 from waltervh/develop

Handle zero minimum value in specular plot
parents a11825fc f3c5219a
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