#2994 Summary plot. Use symbols and no line as default style for observed data curves

This commit is contained in:
Bjørn Erik Jensen 2018-05-28 14:25:45 +02:00
parent d799f9c0fd
commit 0b42c4730d

View File

@ -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);
}