Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/CommandLineUI/Query/VectorsCommandLineQuery.cpp

    r955b91 rf10b0c  
    2929#include "World.hpp"
    3030
    31 CommandLineDialog::VectorsCommandLineQuery::VectorsCommandLineQuery(std::string title, bool _check, std::string _description) :
    32     Dialog::VectorsQuery(title,_check, _description)
     31CommandLineDialog::VectorsCommandLineQuery::VectorsCommandLineQuery(Parameter<std::vector<Vector> > &param, std::string title, bool _check, std::string _description) :
     32    Dialog::VectorsQuery(param, title,_check, _description)
    3333{}
    3434
     
    4040  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    4141    temporary = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<VectorValue> >();
     42    std::vector<Vector> temp_vectors;
    4243    for(std::vector<VectorValue>::iterator iter = temporary.begin(); iter != temporary.end(); ++iter) {
    4344      temp = (*iter).toVector();
    4445      if ((!check) || (World::getInstance().getDomain().isValid(temp)))
    45         tmp.push_back(temp);
     46        temp_vectors.push_back(temp);
    4647      else
    4748        ELOG(1, "Vector " << temp << " would be outside of box domain.");
    4849    }
     50    tmp.set(temp_vectors);
    4951    return true;
    5052  } else {
Note: See TracChangeset for help on using the changeset viewer.