Ignore:
File:
1 edited

Legend:

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

    r955b91 rf10b0c  
    2828#include "World.hpp"
    2929
    30 CommandLineDialog::AtomsCommandLineQuery::AtomsCommandLineQuery(std::string title, std::string _description) :
    31     Dialog::AtomsQuery(title, _description)
     30CommandLineDialog::AtomsCommandLineQuery::AtomsCommandLineQuery(Parameter<std::vector<const atom *> > &param, std::string title, std::string _description) :
     31    Dialog::AtomsQuery(param, title, _description)
    3232{}
    3333
     
    3838  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    3939    IdxOfAtom = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<int> >();
     40    std::vector<const atom *> temp_atoms;
    4041    for (std::vector<int>::iterator iter = IdxOfAtom.begin(); iter != IdxOfAtom.end(); ++iter) {
    4142      temp = World::getInstance().getAtom(AtomById(*iter));
    4243      if (temp)
    43         tmp.push_back(temp);
     44        temp_atoms.push_back(temp);
    4445    }
     46    tmp.set(temp_atoms);
    4547    return true;
    4648  } else {
Note: See TracChangeset for help on using the changeset viewer.