mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 07:16:53 -06:00
#2994 Summary plot. Use symbols and no line as default style for observed data curves
This commit is contained in:
parent
d799f9c0fd
commit
0b42c4730d
@ -682,6 +682,13 @@ void RimSummaryCurve::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
|
||||
}
|
||||
else if (changedField == &m_yValuesSummaryCase)
|
||||
{
|
||||
PdmObjectHandle* oldVal = oldValue.value<caf::PdmPointer<PdmObjectHandle>>().rawPtr();
|
||||
if (oldVal == nullptr && m_yValuesSummaryCase->isObservedData())
|
||||
{
|
||||
// If no previous case selected and observed data, use symbols to indicate observed data curve
|
||||
setLineStyle(RimPlotCurve::STYLE_NONE);
|
||||
setSymbol(RimPlotCurve::SYMBOL_XCROSS);
|
||||
}
|
||||
plot->updateCaseNameHasChanged();
|
||||
this->onLoadDataAndUpdate(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user