Commit 2a51d05f48233a6bf35ecd4282129d32947a73c9

Authored by Erdogan Furkan
1 parent e0d2ebb0

#11100 - Minor fix

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
src/ParamOutputImpl/Plot/HistoPlot/HistoPlot.cc
@@ -300,6 +300,9 @@ void HistoPlot::histo1DUtils(double startDate, double stopDate, HistogramSeriesP @@ -300,6 +300,9 @@ void HistoPlot::histo1DUtils(double startDate, double stopDate, HistogramSeriesP
300 boost::shared_ptr<Axis> lYAxis(_panel->getAxis(pHistogramProperties.getYAxisId())); 300 boost::shared_ptr<Axis> lYAxis(_panel->getAxis(pHistogramProperties.getYAxisId()));
301 301
302 Range lXRange = lXAxis->getRange(); 302 Range lXRange = lXAxis->getRange();
  303 +
  304 + if(std::isnan(lXRange.getMin()) || std::isnan(lXRange.getMax()))
  305 + return;
303 Range lYRange = lYAxis->Axis::getRange(); 306 Range lYRange = lYAxis->Axis::getRange();
304 307
305 double yMin = NAN ; 308 double yMin = NAN ;