Commit e19fc4f7 by maarten

fix in compound factory

git-svn-id: svn+ssh://gitlab/srv/svn-repos/pdb-redo/trunk@256 a1961a4f-ab94-4bcc-80e8-33b5a54de466
parent db5540cf
...@@ -1174,13 +1174,17 @@ Compound* CompoundFactoryImpl::create(std::string id) ...@@ -1174,13 +1174,17 @@ Compound* CompoundFactoryImpl::create(std::string id)
if (not fs::exists(resFile)) if (not fs::exists(resFile))
mMissing.insert(id); mMissing.insert(id);
else else
{
mCompounds.push_back(new Compound(resFile, id, name, group)); mCompounds.push_back(new Compound(resFile, id, name, group));
result = mCompounds.back();
}
} }
else else
{
mCompounds.push_back(new Compound(mPath, id, name, group)); mCompounds.push_back(new Compound(mPath, id, name, group));
result = mCompounds.back(); result = mCompounds.back();
} }
}
if (result == nullptr and mNext != nullptr) if (result == nullptr and mNext != nullptr)
result = mNext->create(id); result = mNext->create(id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment