#1126 Ensure cumulative saturation TOF plot data is only loaded when visible

This commit is contained in:
Bjørnar Grip Fjær committed 2017-08-16 09:39:34 +02:00
1 parent 2c2c82643d
commit 323417364d
2 files changed
+2 -2

No files matched your search

@@ -187,9 +187,8 @@ void RimTofAccumulatedPhaseFractionsPlot::loadDataAndUpdate()
{
updateMdiWindowVisibility();
if (m_tofAccumulatedPhaseFractionsPlotWidget)
if (m_tofAccumulatedPhaseFractionsPlotWidget && m_showWindow())
{
RigTofAccumulatedPhaseFractionsCalculator calc(resultCase(), tracerName(), timeStep());
const std::vector<double>& xValues = calc.sortedUniqueTOFValues();
@@ -179,6 +179,7 @@ void RiuTofAccumulatedPhaseFractionsPlot::setSamples(std::vector<double> xSample
maxVal = std::max(val, maxVal);
}
setAxisScale(QwtPlot::xBottom, 0, maxVal);
updateAxes();
}
}