From 18329bee9fc5ee960e616ccac7d571fd8ca5431b Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Tue, 30 Jul 2019 09:27:52 +0200 Subject: [PATCH] Prevent a sigsegv when the model of vertices is added to the document --- src/HEXABLOCKGUI/HEXABLOCKGUI_DocumentModel.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HEXABLOCKGUI/HEXABLOCKGUI_DocumentModel.cxx b/src/HEXABLOCKGUI/HEXABLOCKGUI_DocumentModel.cxx index 60b97c1..11fece5 100644 --- a/src/HEXABLOCKGUI/HEXABLOCKGUI_DocumentModel.cxx +++ b/src/HEXABLOCKGUI/HEXABLOCKGUI_DocumentModel.cxx @@ -613,7 +613,7 @@ void DocumentModel::fillGeometry() shapeById[shapeName+","+QString::number(node->getIdent())] = node; // * update the compound of vertices - if (shape->getOrigin() == HEXA_NS::SH_CLOUD && !vertexCompound.IsNull()) + if (shape->getOrigin() == HEXA_NS::SH_CLOUD && !vertexCompound.IsNull() && !node->getShape().IsNull()) compoundBuilder.Add(topo_shapes[shapeName], node->getShape()); } -- 2.39.2