mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02:13 -05:00
#1126 Ensure cumulative saturation TOF plot data is only loaded when visible
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user