PAL10324. Fix MakePartition() for the case theMaterials.IsNull()

This commit is contained in:
eap 2006-06-26 14:46:59 +00:00
parent 670be71939
commit 5c45790bd4

View File

@ -280,7 +280,7 @@ Handle(GEOM_Object) GEOMImpl_IBooleanOperations::MakePartition
// Limit, Remove Webs // Limit, Remove Webs
pd << theLimit << ", " << (int)theRemoveWebs << ", ["; pd << theLimit << ", " << (int)theRemoveWebs << ", [";
// Materials // Materials
if (theMaterials->Length() > 0) { if (!theMaterials.IsNull() && theMaterials->Length() > 0) {
int i = theMaterials->Lower(); int i = theMaterials->Lower();
pd << theMaterials->Value(i); pd << theMaterials->Value(i);
i++; i++;