removed assignment of gp::loc to tie as Clang does not like it

This commit is contained in:
Zeno Rogue
2019-11-30 18:55:02 +01:00
parent 56e575369b
commit f46967efb9
6 changed files with 51 additions and 48 deletions
+3 -1
View File
@@ -281,7 +281,9 @@ EX namespace models {
if(spiral_id > isize(torus_zeros)) spiral_id = 0;
dialog::editNumber(spiral_id, 0, isize(torus_zeros)-1, 1, 10, XLAT("match the period of the torus"), "");
dialog::reaction = [] () {
tie(spiral_x, spiral_y) = torus_zeros[spiral_id];
auto& co = torus_zeros[spiral_id];
spiral_x = co.first;
spiral_y = co.second;
};
dialog::bound_low(0);
dialog::bound_up(isize(torus_zeros)-1);