From d82ac26ef0ce33fe9dc749b087c8c0a0d279335b Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 24 Apr 2022 22:10:37 +0200 Subject: [PATCH] parser:: removed exceptions in arcmedge since they might not work correctly with conditionals --- util.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/util.cpp b/util.cpp index 3521afe2..018f6fbf 100644 --- a/util.cpp +++ b/util.cpp @@ -257,11 +257,9 @@ cld exp_parser::parse(int prio) { } #if CAP_ARCM else if(eat("arcmedge(")) { - if(!hyperbolic && !sphere && !euclid) throw hr_parse_exception("arcmedge works only in isotropic geometry"); vector> vals = parse_with_reps(); force_eat(")"); res = euclid ? 1 : arcm::compute_edgelength(vals); - if(real(res) < 1e-10) throw hr_parse_exception("wrong geometry for this arcmedge"); if (auto *distunit = hr::at_or_null(extra_params, "distunit")) res /= *distunit; }