From 53d24fd1bd632f90919dbf8630a67fb4e78920b2 Mon Sep 17 00:00:00 2001 From: Lucian Smith Date: Sat, 4 Sep 2021 16:43:07 -0700 Subject: [PATCH] Fix for issue https://github.com/fbergmann/libSEDML/issues/152: clearing name clears ID instead. --- src/sedml/SedBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sedml/SedBase.cpp b/src/sedml/SedBase.cpp index 7d7161d6..8e47c2a9 100755 --- a/src/sedml/SedBase.cpp +++ b/src/sedml/SedBase.cpp @@ -709,7 +709,7 @@ int SedBase::setName(const std::string& name) { if (name.empty()) { - mId.erase(); + mName.erase(); return LIBSEDML_OPERATION_SUCCESS; } else if (!mNameAllowedPreV4 && getVersion() < 4 && getLevel() == 1)