Skip to content

Commit

Permalink
Set mUsingFNVcard4 as well as mUseSingleName when setting given/famil…
Browse files Browse the repository at this point in the history
…y names.

As far as I can tell, mUseSingleName is not enough; you have to also set mUsingFNVcard4.  In my tests, if I set the 'name' and then changed my mind and set the 'given name' (or family name), no name at all would be written out.
  • Loading branch information
luciansmith committed Sep 22, 2023
1 parent fee56c9 commit c829e66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sbml/annotation/ModelCreator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ ModelCreator::setFamilyName(const std::string& name)
mFamilyName = name;
mHasBeenModified = true;
mUseSingleName = false;
mUsingFNVcard4 = false;
return LIBSBML_OPERATION_SUCCESS;
}
}
Expand All @@ -311,6 +312,7 @@ ModelCreator::setGivenName(const std::string& name)
mGivenName = name;
mHasBeenModified = true;
mUseSingleName = false;
mUsingFNVcard4 = false;
return LIBSBML_OPERATION_SUCCESS;
}
}
Expand Down

0 comments on commit c829e66

Please sign in to comment.