mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 10:08:35 +05:00
PAL10324. Fix MakePartition() for the case theMaterials.IsNull()
This commit is contained in:
parent
670be71939
commit
5c45790bd4
@ -280,7 +280,7 @@ Handle(GEOM_Object) GEOMImpl_IBooleanOperations::MakePartition
|
||||
// Limit, Remove Webs
|
||||
pd << theLimit << ", " << (int)theRemoveWebs << ", [";
|
||||
// Materials
|
||||
if (theMaterials->Length() > 0) {
|
||||
if (!theMaterials.IsNull() && theMaterials->Length() > 0) {
|
||||
int i = theMaterials->Lower();
|
||||
pd << theMaterials->Value(i);
|
||||
i++;
|
||||
|
Loading…
Reference in New Issue
Block a user