RFT plot. Reset branch index when changing well due to exception

This commit is contained in:
Bjørn Erik Jensen 2017-11-17 09:02:43 +01:00
parent 41db3e8b10
commit 5a5a36abf5

View File

@ -710,6 +710,11 @@ void RimWellRftPlot::fieldChangedByUi(const caf::PdmFieldHandle* changedField, c
if (changedField == &m_wellPathNameOrSimWellName || changedField == &m_branchIndex)
{
if (changedField == &m_wellPathNameOrSimWellName)
{
m_branchIndex = 0;
}
RimWellLogTrack* const plotTrack = m_wellLogPlot->trackByIndex(0);
plotTrack->deleteAllCurves();