Skip to content

Commit

Permalink
Fix reading a child listOfElements from a curve.
Browse files Browse the repository at this point in the history
In libsbml, the list is called a ListOfCurveElements, but in SBML proper, it's just 'listOfElements'.  It gets written out as the latter, but was required to be the former when read in, which meant that nothing libsbml wrote could be read back in.
  • Loading branch information
luciansmith committed Nov 21, 2024
1 parent 2ef3a2a commit 4257aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sbml/packages/render/sbml/RenderCurve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ RenderCurve::createObject(XMLInputStream& stream)

const std::string& name = stream.peek().getName();

if (name == "listOfCurveElements")
if (name == "listOfCurveElements" || name=="listOfElements")
{
if (mRenderPoints.size() != 0 && getErrorLog() != NULL)
{
Expand Down

0 comments on commit 4257aba

Please sign in to comment.