Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/ParserAction/LoadXyzAction.cpp

    ra1e929 red6dd8  
    7878        if (UniqueList.size() != ListAfter.size()) { // only create if new atoms have been parsed
    7979          MoleculeListClass *molecules = World::getInstance().getMolecules();
    80           molecule *mol= NULL;
    81           if (molecules->ListOfMolecules.empty()) {
    82             mol = World::getInstance().createMolecule();
    83             molecules->insert(mol);
    84           } else {
    85             mol = *(molecules->ListOfMolecules.begin());
    86           }
     80          molecule *mol = World::getInstance().createMolecule();
     81          molecules->insert(mol);
    8782          for (vector<atom *>::iterator runner = ListAfter.begin(); runner != ListAfter.end(); ++runner) {
    8883            Inserter = UniqueList.insert(*runner);
Note: See TracChangeset for help on using the changeset viewer.