diff --git a/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryCurveCollection.cpp b/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryCurveCollection.cpp index 70fbf082cd..cecd9a0381 100644 --- a/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryCurveCollection.cpp +++ b/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryCurveCollection.cpp @@ -113,7 +113,9 @@ void RimSummaryCurveCollection::onChildrenUpdated( caf::PdmChildArrayFieldHandle { for ( auto obj : updatedObjects ) { - if ( auto curve = dynamic_cast( obj ) ) + // Must use firstAncestorOrThisOfType, since we need to update the curve appearance if the object is a child of a + // RimSummaryCurve. This is the case when modifying curve appearance. + if ( auto curve = obj->firstAncestorOrThisOfType() ) { curve->updateCurveAppearance(); }