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,12 +1174,16 @@ Compound* CompoundFactoryImpl::create(std::string id)
if (not fs::exists(resFile))
mMissing.insert(id);
else
{
mCompounds.push_back(new Compound(resFile, id, name, group));
result = mCompounds.back();
}
}
else
{
mCompounds.push_back(new Compound(mPath, id, name, group));
result = mCompounds.back();
result = mCompounds.back();
}
}
if (result == nullptr and mNext != nullptr)
......
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