summaryrefslogtreecommitdiff
path: root/src/csgtermnormalizer.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-02-02 18:28:06 (GMT)
committerMarius Kintel <marius@kintel.net>2013-02-02 18:28:06 (GMT)
commiteb30d42b5dd3ed5bb37336ed46a59eabaca81e06 (patch)
tree9962bc84f65009339992ecf8d5986b70871bbccc /src/csgtermnormalizer.cc
parent2eda86bf2f2540d4c9eda255c5fae58d71b5b31f (diff)
parent625ba8eea0f05e29dcab65bd6b308cad7f769848 (diff)
Merge branch 'master' of github.com:openscad/openscad
Diffstat (limited to 'src/csgtermnormalizer.cc')
-rw-r--r--src/csgtermnormalizer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/csgtermnormalizer.cc b/src/csgtermnormalizer.cc
index e2474e9..81fab80 100644
--- a/src/csgtermnormalizer.cc
+++ b/src/csgtermnormalizer.cc
@@ -20,7 +20,7 @@ shared_ptr<CSGTerm> CSGTermNormalizer::normalize(const shared_ptr<CSGTerm> &root
PRINTB("WARNING: Normalized tree is growing past %d elements. Aborting normalization.\n", this->limit);
// Clean up any partially evaluated terms
shared_ptr<CSGTerm> newroot = root, tmproot;
- while (newroot != tmproot) {
+ while (newroot && newroot != tmproot) {
tmproot = newroot;
newroot = collapse_null_terms(tmproot);
}
contact: Jan Huwald // Impressum