Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/UIElements/CommandLineUI/Query/MoleculesCommandLineQuery.cpp

    r955b91 rf10b0c  
    2929#include "World.hpp"
    3030
    31 CommandLineDialog::MoleculesCommandLineQuery::MoleculesCommandLineQuery(std::string title, std::string _description) :
    32     Dialog::MoleculesQuery(title, _description)
     31CommandLineDialog::MoleculesCommandLineQuery::MoleculesCommandLineQuery(Parameter<std::vector<const molecule *> > &param, std::string title, std::string _description) :
     32    Dialog::MoleculesQuery(param, title, _description)
    3333{}
    3434
     
    3939  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    4040    IdxOfMol = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<int> >();
     41    std::vector<const molecule *> temp_molecules;
    4142    for (std::vector<int>::iterator iter = IdxOfMol.begin(); iter != IdxOfMol.end(); ++iter) {
    4243      temp = World::getInstance().getMolecule(MoleculeById(*iter));
    4344      if (temp)
    44         tmp.push_back(temp);
     45        temp_molecules.push_back(temp);
    4546    }
     47    tmp.set(temp_molecules);
    4648    return true;
    4749  } else {
Note: See TracChangeset for help on using the changeset viewer.