#4326 Invert Grid Cross Plot Y-axis when displaying DEPTH

This commit is contained in:
Gaute Lindkvist
2019-04-14 16:20:58 +02:00
parent 86e20df7c6
commit c8184065e3
2 changed files with 19 additions and 0 deletions

View File

@@ -884,6 +884,23 @@ void RimGridCrossPlotDataSet::fieldChangedByUi(const caf::PdmFieldHandle* change
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimGridCrossPlotDataSet::childFieldChangedByUi(const caf::PdmFieldHandle* changedChildField)
{
if (changedChildField == &m_yAxisProperty)
{
if (m_yAxisProperty->resultVariable() == "DEPTH")
{
RimGridCrossPlot* plot;
this->firstAncestorOrThisOfTypeAsserted(plot);
plot->setYAxisInverted(true);
triggerPlotNameUpdateAndReplot();
}
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------