Salome HOME
projects
/
modules
/
hexablock.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prevent a sigsegv when the model of vertices is added to the document
[modules/hexablock.git]
/
src
/
HEXABLOCKGUI
/
HEXABLOCKGUI_DocumentModel.cxx
diff --git
a/src/HEXABLOCKGUI/HEXABLOCKGUI_DocumentModel.cxx
b/src/HEXABLOCKGUI/HEXABLOCKGUI_DocumentModel.cxx
index 60b97c1334446406a722a75dadbea2e9b93dc755..11fece565d73315b48af7dd0f405b414094b1cf6 100644
(file)
--- 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
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());
}
compoundBuilder.Add(topo_shapes[shapeName], node->getShape());
}