Annotations. Fix crash

This commit is contained in:
Bjørn Erik Jensen 2018-11-28 15:27:32 +01:00
parent 76e8aa9652
commit b6b96e62f6

View File

@ -106,10 +106,10 @@ void RimTextAnnotation::fieldChangedByUi(const caf::PdmFieldHandle* changedField
const QVariant& oldValue,
const QVariant& newValue)
{
RimAnnotationCollection* annColl = nullptr;
RimAnnotationCollectionBase* annColl = nullptr;
this->firstAncestorOrThisOfTypeAsserted(annColl);
annColl->scheduleRedrawOfRelevantViews();
if(annColl) annColl->scheduleRedrawOfRelevantViews();
}
//--------------------------------------------------------------------------------------------------