Skip to content

Commit

Permalink
Janitor : Call direct parent when overriding virtual methods
Browse files Browse the repository at this point in the history
When overriding initAfterReader, make sure to always call direct parent.

Failing to do so caused RimPlotCurve::initAfterRead() not to be called, and color and other appearance settings was not imported correctly.
  • Loading branch information
magnesj committed Nov 2, 2021
1 parent 4366146 commit 421163d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,8 @@ void RimGridTimeHistoryCurve::defineUiOrdering( QString uiConfigName, caf::PdmUi
//--------------------------------------------------------------------------------------------------
void RimGridTimeHistoryCurve::initAfterRead()
{
RimPlotCurve::initAfterRead();

updateResultDefinitionFromCase();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,8 @@ void RimSummaryCurve::defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrderi
//--------------------------------------------------------------------------------------------------
void RimSummaryCurve::initAfterRead()
{
RimStackablePlotCurve::initAfterRead();

if ( m_isEnsembleCurve().isPartiallyTrue() )
{
m_isEnsembleCurve.v() = ( summaryCaseY() && summaryCaseY()->ensemble() ) ? caf::Tristate::State::True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,8 @@ QList<caf::PdmOptionItemInfo> RimWellLogFileCurve::calculateValueOptions( const
//--------------------------------------------------------------------------------------------------
void RimWellLogFileCurve::initAfterRead()
{
RimWellLogCurve::initAfterRead();

if ( !m_wellPath ) return;

if ( m_wellPath->wellLogFiles().size() == 1 )
Expand Down

0 comments on commit 421163d

Please sign in to comment.