Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/UIElements/TextUI/Query/VectorTextQuery.cpp

    r955b91 rf10b0c  
    3131
    3232
    33 TextDialog::VectorTextQuery::VectorTextQuery(std::string title, bool _check, std::string _description) :
    34     Dialog::VectorQuery(title,_check,_description)
     33TextDialog::VectorTextQuery::VectorTextQuery(Parameter<Vector> &param, std::string title, bool _check, std::string _description) :
     34    Dialog::VectorQuery(param, title,_check,_description)
    3535{}
    3636
     
    4848  getline(std::cin,line);
    4949
     50  Vector temp_vector;
     51
    5052  // dissect by ","
    5153  double coord = 0.;
     
    5658      std::istringstream stream(std::string(iter, olditer));
    5759      stream >> coord;
    58       tmp[counter++] = coord;
     60      temp_vector[counter++] = coord;
    5961      olditer = iter;
    6062    }
     
    6365    std::istringstream stream(std::string(olditer, line.end()));
    6466    stream >> coord;
    65     tmp[counter++] = coord;
     67    temp_vector[counter++] = coord;
    6668  }
     69  tmp.set(temp_vector);
    6770
    6871  // check vector
    69   return World::getInstance().getDomain().isValid(tmp);
     72  return World::getInstance().getDomain().isValid(temp_vector);
    7073}
    7174
Note: See TracChangeset for help on using the changeset viewer.