Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/TextUI/Query/ElementsTextQuery.cpp

    r955b91 rf10b0c  
    3535
    3636
    37 TextDialog::ElementsTextQuery::ElementsTextQuery(std::string title, std::string _description) :
    38     Dialog::ElementsQuery(title,_description)
     37TextDialog::ElementsTextQuery::ElementsTextQuery(Parameter<std::vector<const element *> > &param, std::string title, std::string _description) :
     38    Dialog::ElementsQuery(param, title,_description)
    3939{}
    4040
     
    5050  // dissect by " "
    5151  std::string::iterator olditer = line.begin();
     52  std::vector<const element *> temp_elements;
    5253  for(std::string::iterator iter = line.begin(); iter != line.end(); ++iter) {
    5354    if (*iter == ' ') {
     
    6465        break;
    6566      }
    66       tmp.push_back(temp);
     67      temp_elements.push_back(temp);
    6768      olditer = iter;
    6869    }
     
    7980    if(!temp && Z!=-1) {
    8081      std::cout << "Invalid Element" << shorthand << std::endl;
    81       tmp.push_back(temp);
     82      temp_elements.push_back(temp);
    8283    }
    8384  }
     85  tmp.set(temp_elements);
    8486
    8587  return (Z!=-1);
Note: See TracChangeset for help on using the changeset viewer.