Louis BECQUEY

skips 1nt components

...@@ -218,7 +218,10 @@ void Motif::load_from_csv(string csv_line) ...@@ -218,7 +218,10 @@ void Motif::load_from_csv(string csv_line)
218 } 218 }
219 uint i = 2; 219 uint i = 2;
220 while (i < tokens.size()) { 220 while (i < tokens.size()) {
221 - comp.push_back(Component(make_pair<int, int>(stoi(tokens[i]), stoi(tokens[i + 1])))); 221 + if (stoi(tokens[i]) < stoi(tokens[i + 1]))
222 + comp.push_back(Component(make_pair<int, int>(stoi(tokens[i]), stoi(tokens[i + 1]))));
223 + else
224 + i = i + 0;
222 i += 2; 225 i += 2;
223 } 226 }
224 } 227 }
......