Annotations. Fix crash

This commit is contained in:
Bjørn Erik Jensen committed 2018-11-28 15:27:32 +01:00
1 parent 76e8aa9652
commit b6b96e62f6
1 file changed
+2 -2
@@ -106,10 +106,10 @@ void RimTextAnnotation::fieldChangedByUi(const caf::PdmFieldHandle* changedField
const QVariant& oldValue, const QVariant& oldValue,
const QVariant& newValue) const QVariant& newValue)
{ {
RimAnnotationCollection* annColl = nullptr; RimAnnotationCollectionBase* annColl = nullptr;
this->firstAncestorOrThisOfTypeAsserted(annColl); this->firstAncestorOrThisOfTypeAsserted(annColl);
annColl->scheduleRedrawOfRelevantViews(); if(annColl) annColl->scheduleRedrawOfRelevantViews();
} }
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------