From cf2a8a8a54c733f7c7020e8bc572755ac89a090d Mon Sep 17 00:00:00 2001 From: L Laniewski-Wollk Date: Wed, 10 Jan 2024 19:53:55 +1000 Subject: [PATCH] Adding exception for adding setting zones --- src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 12912712d..9fd5c202b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -240,8 +240,10 @@ class SolverBuilder { } void setZones(pugi::xml_node node) { // This works for **both** the Geometry and ArbitraryLattice nodes for (auto n = node.first_child(); n; n = n.next_sibling()) { - const auto attr = n.attribute("name"); - if (attr) insertZone(attr.value()); + if (std::string(n.name()) != "Zone") { + const auto attr = n.attribute("name"); + if (attr) insertZone(attr.value()); + } } } void setSnaps() {