From 82083ba83d60200cbbdf8696fa6ad2b24b185543 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 17 Nov 2019 13:46:42 +0100 Subject: [PATCH] fieldpattern:: made the prime lists equal -- 6 primes --- fieldpattern.cpp | 6 +----- geom-exp.cpp | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) 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 "