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

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

View File

@ -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();

View File

@ -179,6 +179,7 @@ void RiuTofAccumulatedPhaseFractionsPlot::setSamples(std::vector<double> xSample
maxVal = std::max(val, maxVal);
}
setAxisScale(QwtPlot::xBottom, 0, maxVal);
updateAxes();
}
}