Skip to content

Commit

Permalink
Bug 3248: Fixed problem introduced by the fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
shoops committed Jun 27, 2024
1 parent 26c3095 commit 68c887f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 4 additions & 3 deletions copasi/function/CEvaluationNodeObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ CIssue CEvaluationNodeObject::compile()
return CIssue(CIssue::eSeverity::Error, CIssue::eKind::StructureInvalid);
}

getData();
mRegisteredObjectCN = CRegisteredCommonName(mData.substr(1, mData.length() - 2), mpTree);
mpObject = mpTree->getNodeObject(mRegisteredObjectCN);

Expand All @@ -163,7 +164,7 @@ CIssue CEvaluationNodeObject::compile()
{
mpObject = pObject;
mRegisteredObjectCN = mpObject->getCN();
mData = getData();
getData();
}

if (pDataObject->hasFlag(CDataObject::ValueDbl))
Expand All @@ -186,8 +187,6 @@ CIssue CEvaluationNodeObject::compile()

return CIssue(CIssue::eSeverity::Error, CIssue::eKind::ValueNotFound);
}

mData = "<" + mRegisteredObjectCN + ">";
}
break;

Expand Down Expand Up @@ -229,6 +228,7 @@ CIssue CEvaluationNodeObject::compile()
return CIssue(CIssue::eSeverity::Error, CIssue::eKind::StructureInvalid);
}

getData();
mRegisteredObjectCN = CRegisteredCommonName(mData.substr(1, mData.length() - 2), mpTree);
mpObject = mpTree->getNodeObject(mRegisteredObjectCN);

Expand Down Expand Up @@ -362,6 +362,7 @@ std::string CEvaluationNodeObject::getInfix(const std::vector< std::string > & /
switch (mSubType)
{
case SubType::CN:
case SubType::AVOGADRO:
return "<" + mRegisteredObjectCN + ">";
break;

Expand Down
6 changes: 4 additions & 2 deletions copasi/model/CModelValue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,14 +430,16 @@ std::string CModelEntity::getExpression() const

CExpression* CModelEntity::getExpressionPtr()
{
if (mpExpression != NULL) mpExpression->updateInfix();
if (mpExpression != NULL)
mpExpression->updateInfix();

return mpExpression;
}

const CExpression* CModelEntity::getExpressionPtr() const
{
if (mpExpression != NULL) mpExpression->updateInfix();
if (mpExpression != NULL)
mpExpression->updateInfix();

return mpExpression;
}
Expand Down

0 comments on commit 68c887f

Please sign in to comment.