Commit b9cb4543 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Check result of dynamic_cast

CID:249022
parent f38b4824
......@@ -405,8 +405,10 @@ void KisScalarKeyframeChannel::uploadExternalKeyframe(KisKeyframeChannel *srcCha
KIS_ASSERT_RECOVER_RETURN(srcFrame);
KisScalarKeyframe *dstKey = dynamic_cast<KisScalarKeyframe*>(dstFrame.data());
dstKey->value = srcChannel->scalarValue(srcFrame);
notifyKeyframeChanged(dstFrame);
if (dstKey) {
dstKey->value = srcChannel->scalarValue(srcFrame);
notifyKeyframeChanged(dstFrame);
}
}
QRect KisScalarKeyframeChannel::affectedRect(KisKeyframeSP key)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment