diff --git a/fieldpattern.cpp b/fieldpattern.cpp index ecf47fa7..52f551c0 100644 --- a/fieldpattern.cpp +++ b/fieldpattern.cpp @@ -883,12 +883,8 @@ EX void nextPrime(fgeomextra& ex) { } EX void nextPrimes(fgeomextra& ex) { - while(true) { - int nodual = 0; - for(int a: ex.dualval) if(!a) nodual++; - if(nodual >= 4) break; + while(isize(ex.primes) < 6) nextPrime(ex); - } } EX void enableFieldChange() { diff --git a/geom-exp.cpp b/geom-exp.cpp index 02d99b9a..803fa3f1 100644 --- a/geom-exp.cpp +++ b/geom-exp.cpp @@ -54,7 +54,7 @@ void showQuotientConfig() { dialog::addBoolItem(XLAT("order %1%2 (pure cells: %3)", its(p.p), p.squared ? "²" : "", its(p.cells)) + stars[gxcur.dualval[i]], i == gxcur.current_prime_id, 'A'+i); } - if(isize(gxcur.primes) < 6) { + if(isize(gxcur.primes) <= 6) { dialog::addBreak(100); dialog::addHelp( "This geometry is obtained by applying the same 'generators' which "