Skip to content

Commit

Permalink
- issue 3273: add event targets from dataobjects
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Dec 18, 2024
1 parent 8d6527a commit fecdf1e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion copasi/model/CObjectLists.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,12 @@ std::set< const CModelEntity * > CObjectLists::getEventTargets(const CModel* pMo

for (; itAssignment != endAssignment; ++itAssignment)
{
const CDataObject * pDataObject = dynamic_cast < const CDataObject*>(CDataObject::GetObjectFromCN(List, itAssignment->getTargetCN()));
const CModelEntity * pModelEntity =
dynamic_cast< const CModelEntity * >(CDataObject::GetObjectFromCN(List, itAssignment->getTargetCN()));
dynamic_cast< const CModelEntity * >(pDataObject);

if (!pModelEntity && pDataObject)
pModelEntity = dynamic_cast< const CModelEntity * >(pDataObject->getObjectParent());

if (pModelEntity != NULL)
{
Expand Down

0 comments on commit fecdf1e

Please sign in to comment.