Commit 2034be4d authored by Lorenz Meier's avatar Lorenz Meier

Merge pull request #392 from johnflux/config

Do not crash in an empty symmetric IncrementalPlot
parents 36d5aded 1f983e59
......@@ -214,6 +214,9 @@ void IncrementalPlot::resetScaling()
void IncrementalPlot::updateScale()
{
const double margin = 0.05;
if(xmin == DBL_MAX)
return;
double xMinRange = xmin-(qAbs(xmin*margin));
double xMaxRange = xmax+(qAbs(xmax*margin));
double yMinRange = ymin-(qAbs(ymin*margin));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment