mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Statistics dialog. Fix crash when values equals INF
This commit is contained in:
@@ -192,14 +192,23 @@ void RicGridStatisticsDialog::setMarkers(const Rim3dOverlayInfoConfig::Histogram
|
||||
|
||||
QwtPlotMarker* marker;
|
||||
|
||||
marker = createVerticalPlotMarker(Qt::red, histData.p10);
|
||||
marker->attach(plot);
|
||||
if (histData.p10 != HUGE_VAL)
|
||||
{
|
||||
marker = createVerticalPlotMarker(Qt::red, histData.p10);
|
||||
marker->attach(plot);
|
||||
}
|
||||
|
||||
marker = createVerticalPlotMarker(Qt::red, histData.p90);
|
||||
marker->attach(plot);
|
||||
if (histData.p90 != HUGE_VAL)
|
||||
{
|
||||
marker = createVerticalPlotMarker(Qt::red, histData.p90);
|
||||
marker->attach(plot);
|
||||
}
|
||||
|
||||
marker = createVerticalPlotMarker(Qt::blue, histData.mean);
|
||||
marker->attach(plot);
|
||||
if (histData.mean != HUGE_VAL)
|
||||
{
|
||||
marker = createVerticalPlotMarker(Qt::blue, histData.mean);
|
||||
marker->attach(plot);
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user