// reload the resource, perhaps this should be improved...
// reload the resource, perhaps this should be improved...
if(mCompoundsFile.empty())
if(m_file.empty())
{
{
ccd=cif::load_resource("components.cif");
ccd=cif::load_resource("components.cif");
if(notccd)
if(notccd)
throwstd::runtime_error("Could not locate the CCD components.cif file, please make sure the software is installed properly and/or use the update-libcifpp-data to fetch the data.");
throwstd::runtime_error("Could not locate the CCD components.cif file, please make sure the software is installed properly and/or use the update-libcifpp-data to fetch the data.");