diff --git a/celldrawer.cpp b/celldrawer.cpp index 36d62308..f29801f1 100644 --- a/celldrawer.cpp +++ b/celldrawer.cpp @@ -1656,7 +1656,8 @@ void celldrawer::check_rotations() { // so we use function(old) which will return the same value as function(c) if ds.best is not known yet cell *old = ds.best ? ds.best : c; - auto use_if_less = [this, &ds] (int a, int b, ld spd, int side) { + auto use_if_less = [this] (int a, int b, ld spd, int side) { + auto& ds = downseek; if(a > b) return; if(!ds.best || a < b) ds.reset(); if(a <= b) { diff --git a/euclid.cpp b/euclid.cpp index ceb969b0..a677357b 100644 --- a/euclid.cpp +++ b/euclid.cpp @@ -932,7 +932,8 @@ EX namespace euc { char ch = 'a' + i * 3 + j; if(displayfr(dialog::dcenter + dialog::dfspace * 4 * (j-(dim-1.)/2), v.position, 2, dialog::dfsize, its(T_edit[j][i]), 0xFFFFFF, 8)) getcstat = ch; - dialog::add_key_action(ch, [&T_edit, i, j] { + dialog::add_key_action(ch, [i, j] { + auto& T_edit = eu_edit.user_axes; dialog::editNumber(T_edit[j][i], -10, +10, 1, 0, "", XLAT( "This matrix lets you play on the quotient spaces of three-dimensional. " "Euclidean space. Every column specifies a translation vector which "