Call zoomAlll when x-axis type changes

This will ensure that the x-axis range is reset when switching from a cross plot to time plot
This commit is contained in:
Magne Sjaastad
2023-10-27 15:26:07 +02:00
parent 718d40de56
commit 184ed5fb65
2 changed files with 2 additions and 0 deletions

View File

@@ -836,6 +836,7 @@ void RimEnsembleCurveSet::fieldChangedByUi( const caf::PdmFieldHandle* changedFi
plot->updateAxes();
plot->updatePlotTitle();
updateAllCurves();
plot->zoomAll();
}
else if ( changedField == &m_resampling || changedField == &m_useCustomAppearance || changedField == &m_lineStyle ||
changedField == &m_pointSymbol || changedField == &m_symbolSize || changedField == &m_statisticsLineStyle ||

View File

@@ -1154,6 +1154,7 @@ void RimSummaryCurve::fieldChangedByUi( const caf::PdmFieldHandle* changedField,
}
plot->updateAxes();
plot->updatePlotTitle();
plot->zoomAll();
loadAndUpdate = true;
}
else if ( &m_showCurve == changedField )