From d2c70117cc2b6ca2fe80adeb3a8058cd0685b706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Sun, 14 Jan 2018 08:01:57 +0100 Subject: [PATCH] fix ClosedSurface --- libsrc/csg/python_csg.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libsrc/csg/python_csg.cpp b/libsrc/csg/python_csg.cpp index 2dc50330..ac6d48e7 100644 --- a/libsrc/csg/python_csg.cpp +++ b/libsrc/csg/python_csg.cpp @@ -513,7 +513,9 @@ DLL_HEADER void ExportCSG(py::module &m) cout << "surface ids2 = " << si2 << endl; Flags flags; - const TopLevelObject * domain = self.GetTopLevelObject(domain_solid->GetSolid()); + const TopLevelObject * domain = nullptr; + if (domain_solid) + domain = self.GetTopLevelObject(domain_solid->GetSolid()); self.AddIdentification (new CloseSurfaceIdentification