mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3171 Plot source stepping. Force update curve appearace when stepping from a grid case to an observed case, and vice versa
This commit is contained in:
@@ -677,6 +677,30 @@ QString RimSummaryCurve::curveExportDescription() const
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryCurve::forceUpdateCurveAppearanceFromCaseType()
|
||||
{
|
||||
if (m_yValuesSummaryCase)
|
||||
{
|
||||
if (m_yValuesSummaryCase->isObservedData())
|
||||
{
|
||||
setLineStyle(RimPlotCurve::STYLE_NONE);
|
||||
|
||||
if (symbol() == RimPlotCurve::SYMBOL_NONE)
|
||||
{
|
||||
setSymbol(RimPlotCurve::SYMBOL_XCROSS);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
setLineStyle(RimPlotCurve::STYLE_SOLID);
|
||||
setSymbol(RimPlotCurve::SYMBOL_NONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user